File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - v.2.0
7+ paths :
8+ - ' docs/**'
9+
10+ jobs :
11+ build :
12+ name : Build Docusaurus
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 18
21+ cache : yarn
22+
23+ - name : Install dependencies
24+ working-directory : website
25+ run : yarn install --frozen-lockfile
26+ - name : Build website
27+ working-directory : website
28+ run : yarn build
29+
30+ - name : Upload Build Artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : website/build
34+
35+ deploy :
36+ name : Deploy to GitHub Pages
37+ needs : build
38+
39+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
40+ permissions :
41+ pages : write # to deploy to Pages
42+ id-token : write # to verify the deployment originates from an appropriate source
43+
44+ # Deploy to the github-pages environment
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments