diff --git a/.github/workflows/CD-azure-functions.yml b/.github/workflows/CD-azure-functions.yml index 8b8a2a9..d53b2ad 100644 --- a/.github/workflows/CD-azure-functions.yml +++ b/.github/workflows/CD-azure-functions.yml @@ -9,7 +9,7 @@ on: env: AZURE_FUNCTIONAPP_NAME: AutomaticClockOuts # set this to your application's name - AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + AZURE_FUNCTIONAPP_PACKAGE_PATH: '../AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root jobs: build-and-deploy: @@ -21,9 +21,12 @@ jobs: node-version: '10.x' - name: 'run npm' run: | + pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' npm install npm run build --if-present - - uses: Azure/functions-action@v1 + popd + - name: 'Run Azure Functions Action' + uses: Azure/functions-action@v1 id: fa with: app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}