Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 6c78957

Browse files
authored
Bundle rather than uploading the entire repo (#504)
1 parent 2b15156 commit 6c78957

File tree

7 files changed

+749
-42
lines changed

7 files changed

+749
-42
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,18 @@ jobs:
3333
npm install
3434
npm run build --if-present
3535
npm run test --if-present
36-
npm prune --production
36+
37+
- name: Build zip
38+
run: npm run bundle
39+
40+
- name: Create zip
41+
run: zip -r ${{ env.FUNCTION_ZIP_NAME }} dist host.json package.json
3742

3843
- name: Upload artifact for deployment job
3944
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
4045
with:
4146
name: node-app
42-
path: .
47+
path: ${{ env.FUNCTION_ZIP_NAME }}
4348

4449
deploy:
4550
runs-on: ubuntu-latest
@@ -55,9 +60,6 @@ jobs:
5560
with:
5661
name: node-app
5762

58-
- name: Create zip
59-
run: zip -r ${{ env.FUNCTION_ZIP_NAME }} .
60-
6163
- uses: azure/login@6b2456866fc08b011acb422a92a4aa20e2c4de32 # v2.1.0
6264
with:
6365
client-id: ${{ secrets.AZURE_CLIENT_ID }}

0 commit comments

Comments
 (0)