File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CD
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Install
14+ run : yarn
15+ - name : Build
16+ run : yarn build
17+ - uses : actions/upload-artifact@master
18+ with :
19+ name : page
20+ path : public
21+ if-no-files-found : error
22+
23+ deploy :
24+ runs-on : ubuntu-latest
25+ permissions :
26+ id-token : write
27+ pages : write
28+ contents : read
29+ needs : build
30+ environment :
31+ name : github-pages
32+ url : ${{steps.deployment.outputs.page_url}}
33+ steps :
34+ - uses : actions/download-artifact@master
35+ with :
36+ name : page
37+ path : .
38+ - uses : actions/configure-pages@v1
39+ - uses : actions/upload-pages-artifact@v1
40+ with :
41+ path : .
42+ - id : deployment
43+ uses : actions/deploy-pages@main
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments