From e1e87d9f85f30fcd0ba2c96cda5d1490feca09ae Mon Sep 17 00:00:00 2001 From: BPT-CIPP Date: Wed, 28 Aug 2024 22:08:24 -0400 Subject: [PATCH] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_bpt-rewstps.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main_bpt-rewstps.yml diff --git a/.github/workflows/main_bpt-rewstps.yml b/.github/workflows/main_bpt-rewstps.yml new file mode 100644 index 0000000..9cbce91 --- /dev/null +++ b/.github/workflows/main_bpt-rewstps.yml @@ -0,0 +1,29 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy Powershell project to Azure Function App - BPT-RewstPS + +on: + push: + branches: + - main + workflow_dispatch: + +env: + AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: 'Checkout GitHub Action' + uses: actions/checkout@v4 + + - name: 'Run Azure Functions Action' + uses: Azure/functions-action@v1 + id: fa + with: + app-name: 'BPT-RewstPS' + slot-name: 'Production' + package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E5CC0A1378A9401C91B188AB177845A6 }}