This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Azure Web App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Setup Node Js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Deploy to Azure | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: test-poc-service | |
publish-profile: ${{ secrets.PUBLISH_PROFILE }} | |
package: $(System.DefaultWorkingDirectory)/release.zip | |
- name: Configure SCM_DO_BUILD_DURING_DEPLOYMENT | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: az webapp config appsettings set --name test-poc-service --resource-group test-poc-service_group-829e --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true |