Skip to content

test fix

test fix #33

Workflow file for this run

name: Deploy to Azure Web App
on:
push:
branches:
- main
env:
AZURE_WEBAPP_SHARED_LIBS_PATH: "libs"
AZURE_WEBAPP_SERVICE_PATHS: "test-service,app-service"
jobs:
build-and-deploy:
strategy:
matrix:
service:
names: ["${{ secrets.AZURE_WEBAPP_NAMES }}"]

Check failure on line 17 in .github/workflows/cicd.yml

View workflow run for this annotation

GitHub Actions / Deploy to Azure Web App

Invalid workflow file

The workflow is not valid. .github/workflows/cicd.yml (Line: 17, Col: 11): A mapping was not expected
publish_profiles:
[
"${{ secrets.PUBLISH_PROFILE_TEST }}, ${{ secrets.PUBLISH_PROFILE_APP }}",
]
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: Merge shared libs with service package and create zip file
run: |
mkdir -p deployment_packages
cp -r $AZURE_WEBAPP_SHARED_LIBS_PATH/* deployment_packages/
cp -r ${{ matrix.service.names }}/* deployment_packages/
cd deployment_packages && zip -r ../${{ matrix.service.names }}.zip . -x '*.git*' && cd ..
working-directory: ${{ github.workspace }}
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: ${{ matrix.service.names }}
publish-profile: ${{ matrix.service.publish_profiles }}
package: ${{ github.workspace }}/${{ matrix.service.names }}.zip