File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
- name : First GitHub Actions Demo
1
+
2
+ name : First GitHub Actions
2
3
on :
3
4
push :
4
5
branches :
5
6
- master
7
+ - dev
6
8
7
9
jobs :
8
10
Build :
@@ -17,30 +19,30 @@ jobs:
17
19
node-version : ' 16.14'
18
20
cache : ' yarn'
19
21
cache-dependency-path : ' **/yarn.lock'
20
-
22
+
21
23
- run : yarn install && yarn build
22
24
23
25
- name : upload files
24
26
uses : actions/upload-artifact@v2
25
27
with :
26
- name : dist
27
- path : dist
28
+ name : build-pages
29
+ path : build
28
30
retention-days : 1
29
31
Deploy :
30
32
needs : Build
31
33
runs-on : ubuntu-latest
32
34
steps :
33
35
- name : checkout code
34
36
uses : actions/checkout@v2
35
- - name : download dist files
37
+ - name : download build files
36
38
uses : actions/download-artifact@v2
37
39
with :
38
- name : dist
39
- path : dist
40
+ name : build-pages
41
+ path : build
40
42
- name : deploy
41
43
uses : JamesIves/github-pages-deploy-action@v4.2.3
42
44
with :
43
45
branch : dist
44
- folder : dist
46
+ folder : build
45
47
token : " ${{ secrets.AWESOME_CSS_TOKEN }}"
46
48
You can’t perform that action at this time.
0 commit comments