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