Skip to content

Commit ed4656f

Browse files
committedOct 12, 2022
zip to reduce upload time
1 parent e3f07a3 commit ed4656f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎.github/workflows/main_programmer-portfolio.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ jobs:
2525
run: |
2626
npm install
2727
npm run build
28+
29+
- name: Zip files for faster upload
30+
run: zip -symlinks -r nest.zip ./*
2831

2932
- name: Upload artifact for deployment job
3033
uses: actions/upload-artifact@v2
3134
with:
3235
name: node-app
33-
path: .
36+
path: nest.zip
3437

3538
deploy:
3639
runs-on: ubuntu-latest
@@ -45,11 +48,14 @@ jobs:
4548
with:
4649
name: node-app
4750

48-
- name: 'Deploy to Azure Web App'
51+
- name: Deploy to Azure Web App
4952
uses: azure/webapps-deploy@v2
5053
id: deploy-to-webapp
5154
with:
5255
app-name: 'programmer-portfolio'
5356
slot-name: 'Production'
5457
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_24C640A18070442B80485A274214DB1D }}
55-
package: .
58+
package: nest.zip
59+
60+
- name: Delete zip file
61+
run: rm nest.zip

0 commit comments

Comments
 (0)
Please sign in to comment.