diff --git a/.github/workflows/eoefans-api-azure-deploy.yml b/.github/workflows/eoefans-api-azure-deploy.yml index afb9db6..35303cd 100644 --- a/.github/workflows/eoefans-api-azure-deploy.yml +++ b/.github/workflows/eoefans-api-azure-deploy.yml @@ -53,6 +53,34 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - uses: azure/login@v1 + with: + creds: '${{ secrets.AZURE_CREDENTIALS }}' + +# Uncomment the below action snippet if the Web app credentials are not updated as web app settings + - name: Set Web App configuration + uses: Azure/appservice-settings@v1 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + app-settings-json: | + [ + { + "name": "SENTRY_RELEASE", + "value": "${{ env.DEPLOY_VERSION }}", + "slotSetting": false + }, + { + "name": "SENTRY_ENV", + "value": "production", + "slotSetting": false + }, + { + "name": "VERSION", + "value": "${{ env.DEPLOY_VERSION }}", + "slotSetting": false + } + ] + - name: Deploy to Azure Web App id: deploy-to-webapp uses: azure/webapps-deploy@v2