Skip to content

Commit 2b66aab

Browse files
committed
mod:deploymentRunner
1 parent 174677a commit 2b66aab

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/deploy.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ permissions:
99
id-token: write
1010
contents: read
1111

12+
env:
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
14+
1215
jobs:
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 }}

0 commit comments

Comments
 (0)