From a167d1e3f46af86d6e871ab79df6bb0e7b0fec65 Mon Sep 17 00:00:00 2001 From: julius4real <99129568+julius4real@users.noreply.github.com> Date: Wed, 12 Jul 2023 22:51:24 +0100 Subject: [PATCH 1/3] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_wep-app-2.yml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/main_wep-app-2.yml diff --git a/.github/workflows/main_wep-app-2.yml b/.github/workflows/main_wep-app-2.yml new file mode 100644 index 000000000..ce48b6ca9 --- /dev/null +++ b/.github/workflows/main_wep-app-2.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 - wep-app-2 + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Java version + uses: actions/setup-java@v1 + with: + java-version: '11' + + - 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: windows-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: 'wep-app-2' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_85C1FE0B415748D7B931801F9272EA41 }} + package: '*.jar' From f382b40d177996d4d4c277399c3e8cc7dcebd0b0 Mon Sep 17 00:00:00 2001 From: julius4real <99129568+julius4real@users.noreply.github.com> Date: Mon, 17 Jul 2023 02:06:23 +0200 Subject: [PATCH 2/3] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_wep-app-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_wep-app-2.yml b/.github/workflows/main_wep-app-2.yml index ce48b6ca9..11cec5eb8 100644 --- a/.github/workflows/main_wep-app-2.yml +++ b/.github/workflows/main_wep-app-2.yml @@ -49,5 +49,5 @@ jobs: with: app-name: 'wep-app-2' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_85C1FE0B415748D7B931801F9272EA41 }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0730A2D03EAD4A198A9143CC98B9A489 }} package: '*.jar' From 98b90ec810be967be7faba75088b7d3a1a6d80fd Mon Sep 17 00:00:00 2001 From: julius4real <99129568+julius4real@users.noreply.github.com> Date: Mon, 17 Jul 2023 02:07:33 +0200 Subject: [PATCH 3/3] Remove the Azure App Service build and deployment workflow config --- .github/workflows/main_wep-app-2.yml | 53 ---------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/main_wep-app-2.yml diff --git a/.github/workflows/main_wep-app-2.yml b/.github/workflows/main_wep-app-2.yml deleted file mode 100644 index 11cec5eb8..000000000 --- a/.github/workflows/main_wep-app-2.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 - wep-app-2 - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Java version - uses: actions/setup-java@v1 - with: - java-version: '11' - - - 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: windows-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: 'wep-app-2' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0730A2D03EAD4A198A9143CC98B9A489 }} - package: '*.jar'