From 1e00cc96e9796c1a0c3d4f6422086e6e7dbb9e39 Mon Sep 17 00:00:00 2001 From: Francis1002 <61449786+Francis1002@users.noreply.github.com> Date: Tue, 6 Dec 2022 17:54:14 +0530 Subject: [PATCH 1/2] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_lastkinch.yml | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/master_lastkinch.yml diff --git a/.github/workflows/master_lastkinch.yml b/.github/workflows/master_lastkinch.yml new file mode 100644 index 0000000..31d60d6 --- /dev/null +++ b/.github/workflows/master_lastkinch.yml @@ -0,0 +1,53 @@ +# 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 - lastkinch + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Java version + uses: actions/setup-java@v1 + with: + java-version: '8' + + - name: Build with Maven + run: mvn clean install + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: java-app + path: '${{ github.workspace }}/target/*.jar' + + 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: 'lastkinch' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_8F17D4D5DF0849FFB6643DFCE3656B6A }} + package: '*.jar' From aebc6927243491c8a32baaedb2b89dd03dda78f5 Mon Sep 17 00:00:00 2001 From: Francis1002 <61449786+Francis1002@users.noreply.github.com> Date: Tue, 6 Dec 2022 17:55:51 +0530 Subject: [PATCH 2/2] Remove the Azure App Service build and deployment workflow config --- .github/workflows/master_lastkinch.yml | 53 -------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/master_lastkinch.yml diff --git a/.github/workflows/master_lastkinch.yml b/.github/workflows/master_lastkinch.yml deleted file mode 100644 index 31d60d6..0000000 --- a/.github/workflows/master_lastkinch.yml +++ /dev/null @@ -1,53 +0,0 @@ -# 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 - lastkinch - -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Java version - uses: actions/setup-java@v1 - with: - java-version: '8' - - - name: Build with Maven - run: mvn clean install - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 - with: - name: java-app - path: '${{ github.workspace }}/target/*.jar' - - 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: 'lastkinch' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_8F17D4D5DF0849FFB6643DFCE3656B6A }} - package: '*.jar'