This repository was archived by the owner on Mar 1, 2024. It is now read-only.
File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Password backup site generation & update
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - develop
8
+ - master
9
+ pull_request :
10
+ branches :
11
+ - develop
12
+ - master
13
+
14
+ jobs :
15
+ generate :
16
+ name : Generate the site
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Clone
20
+ uses : actions/checkout@v3
21
+ - name : Set Node.js 16.x
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 16.x
25
+ - name : Run install
26
+ uses : borales/actions-yarn@v4
27
+ with :
28
+ cmd : install
29
+ - name : Run install
30
+ uses : borales/actions-yarn@v4
31
+ with :
32
+ cmd : build
33
+ - name : Upload documentation bundle
34
+ uses : actions/upload-artifact@v3
35
+ with :
36
+ name : site
37
+ path : build/
38
+
39
+ deploy :
40
+ name : Deploy the site on Github pages
41
+ runs-on : ubuntu-latest
42
+ needs : generate
43
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
44
+ steps :
45
+ - name : Download documentation bundle
46
+ uses : actions/download-artifact@v3
47
+ - name : Deploy documentation on pages
48
+ uses : peaceiris/actions-gh-pages@v3
49
+ with :
50
+ github_token : ${{ secrets.GITHUB_TOKEN }}
51
+ publish_dir : site
You can’t perform that action at this time.
0 commit comments