File tree Expand file tree Collapse file tree 2 files changed +62
-2
lines changed
Expand file tree Collapse file tree 2 files changed +62
-2
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+ pull :
8+ branches :
9+ - main
10+ # Review gh actions docs if you want to further define triggers, paths, etc
11+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
12+
13+ jobs :
14+ build :
15+ name : Build Docusaurus
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ working-directory : ./app
20+ with :
21+ fetch-depth : 0
22+ - uses : actions/setup-node@v4
23+ working-directory : ./app
24+ with :
25+ node-version : 20
26+ cache : npm
27+
28+ - name : Install dependencies
29+ working-directory : ./app
30+ run : npm ci
31+ - name : Build website
32+ working-directory : ./app
33+ run : npm run build
34+
35+ - name : Upload Build Artifact
36+ working-directory : ./app
37+ uses : actions/upload-pages-artifact@v3
38+ with :
39+ path : build
40+
41+ deploy :
42+ name : Deploy to GitHub Pages
43+ needs : build
44+
45+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
46+ permissions :
47+ pages : write # to deploy to Pages
48+ id-token : write # to verify the deployment originates from an appropriate source
49+
50+ # Deploy to the github-pages environment
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+
55+ runs-on : ubuntu-latest
56+ steps :
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -15,15 +15,16 @@ const config: Config = {
1515 } ,
1616
1717 // Set the production url of your site here
18- url : 'https://your-docusaurus-site.example.com ' ,
18+ url : 'https://MetaState-Prototype-Project.github.io ' ,
1919 // Set the /<baseUrl>/ pathname under which your site is served
2020 // For GitHub pages deployment, it is often '/<projectName>/'
2121 baseUrl : '/' ,
2222
2323 // GitHub pages deployment config.
2424 // If you aren't using GitHub pages, you don't need these.
2525 organizationName : 'MetaState-Prototype-Project' , // Usually your GitHub org/user name.
26- projectName : 'docusaurus' , // Usually your repo name.
26+ projectName : 'MetaState-Prototype-Project.github.io' , // Usually your repo name.
27+ trailingSlash : false ,
2728
2829 onBrokenLinks : 'throw' ,
2930
You can’t perform that action at this time.
0 commit comments