File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,9 +9,13 @@ permissions:
99 id-token : write
1010 contents : read
1111
12+ env :
13+ AZURE_FUNCTIONAPP_PACKAGE_PATH : ' .'
14+
1215jobs :
1316 deploy :
1417 name : Deploy to Azure Functions
18+ # runs-on: ubuntu-latest
1519 runs-on : windows-latest
1620
1721 steps :
@@ -23,20 +27,27 @@ jobs:
2327 with :
2428 node-version : 20
2529
26- - name : Install dependencies
27- run : npm install
30+ # - name: Install dependencies
31+ # run: npm install
32+
33+ - name : ' Resolve Project Dependencies Using Npm'
34+ shell : pwsh
35+ run : |
36+ pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
37+ npm install
38+ popd
2839
2940 # - name: Archive production artifacts
3041 # run: zip -r functionapp.zip . -x '*.git*'
3142
32- - name : Archive production artifacts
33- run : |
34- # Ensure the ZIP command is excluding unnecessary files like `.git`
35- powershell Compress-Archive -Path * -DestinationPath functionapp.zip -Force
43+ # - name: Archive production artifacts
44+ # run: |
45+ # powershell Compress-Archive -Path * -DestinationPath functionapp.zip -Force
3646
3747 - name : Deploy to Azure Functions
3848 uses : azure/functions-action@v1
3949 with :
4050 app-name : ${{ secrets.AZURE_FUNCTION_APP_NAME }}
41- package : functionapp.zip
51+ # package: functionapp.zip
52+ package : ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
4253 publish-profile : ${{ secrets.AZURE_CREDENTIALS }}
You can’t perform that action at this time.
0 commit comments