Skip to content

.github/workflows/master_javaappanuj.yml #6

.github/workflows/master_javaappanuj.yml

.github/workflows/master_javaappanuj.yml #6

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy JAR app to Azure Web App - JavaAppAnuj
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
uses: anujdevopslearn/GithubActions/.github/workflows/maven-reusable.yml@master
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: java-app
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'JavaAppAnuj'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7C654800D6C44D0FB51BB1A43B677602 }}
package: '*.jar'