File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -9,10 +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
15- runs-on : ubuntu -latest
18+ runs-on : windows -latest
1619
1720 steps :
1821 - name : Checkout repository
@@ -22,25 +25,17 @@ jobs:
2225 uses : actions/setup-node@v4
2326 with :
2427 node-version : 20
25-
26- - name : Install Azure Functions Core Tools
27- run : npm install -g azure-functions-core-tools@4 --unsafe-perm true
2828
2929 - name : Install dependencies
30- run : npm install
31-
32- - name : Archive production artifacts
33- run : zip -r functionapp.zip . -x '*.git*'
30+ shell : pwsh
31+ run : |
32+ pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
33+ npm install
34+ popd
3435
3536 - name : Deploy to Azure Functions
3637 uses : azure/functions-action@v1
3738 with :
3839 app-name : ${{ secrets.AZURE_FUNCTION_APP_NAME }}
39- package : functionapp.zip
40+ package : ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
4041 publish-profile : ${{ secrets.AZURE_CREDENTIALS }}
41-
42- # - name: Deploy to Azure Functions
43- # run: func azure functionapp publish noob-functions
44- # env:
45- # AZURE_FUNCTIONAPP_NAME: ${{ secrets.AZURE_FUNCTION_APP_NAME }}
46- # AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
You can’t perform that action at this time.
0 commit comments