File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,14 @@ jobs:
19
19
npm install
20
20
npm run build
21
21
22
+ - name : Zip Site
23
+ run : bash ./script.sh
24
+
22
25
- name : Upload files
23
26
uses : actions/upload-artifact@v2
24
27
with :
25
28
name : public-dir
26
- path : ./ public/*
29
+ path : public-dir.zip
27
30
- name : Triger Inner workflow
28
31
run : echo "triger inner workflow"
29
32
Original file line number Diff line number Diff line change 73
73
run_id : ${{ github.event.workflow_run.id }}
74
74
name : public-dir
75
75
76
+ - name : Unzip Site
77
+ run : |
78
+ rm -rf ./public
79
+ unzip public-dir.zip
80
+ rm -f public-dir.zip
81
+
76
82
- name : Deploy and Preview 🚀
77
83
78
84
with :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [ -f public-dir.zip ]; then
4
+ rm -rf public-dir.zip
5
+ fi
6
+ zip -r public-dir.zip ./public
You can’t perform that action at this time.
0 commit comments