File tree Expand file tree Collapse file tree 2 files changed +63
-4
lines changed Expand file tree Collapse file tree 2 files changed +63
-4
lines changed Original file line number Diff line number Diff line change 1+ name : deploy-docusaurus
2+
3+ on :
4+ # Runs on pushes targeting the default branch
5+ push :
6+ branches :
7+ - main
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_dispatch :
11+
12+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+ permissions :
14+ contents : read
15+ pages : write
16+ id-token : write
17+
18+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+ concurrency :
21+ group : " pages"
22+ cancel-in-progress : false
23+
24+ jobs :
25+ # Build job
26+ build :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+ with :
32+ fetch-depth : 0
33+ - name : Setup Node
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : 20
37+ cache : npm
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+ - name : Install dependencies
41+ run : npm ci
42+ - name : Build with Docusaurus
43+ run : npm run build
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v3
46+ with :
47+ path : ./build
48+
49+ # Deployment job
50+ deploy :
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ runs-on : ubuntu-latest
55+ needs : build
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,15 @@ const config: Config = {
1515 } ,
1616
1717 // Set the production url of your site here
18- url : 'https://progressjava.com ' ,
18+ url : 'https://progressjava.github.io ' ,
1919 // Set the /<baseUrl>/ pathname under which your site is served
2020 // For GitHub pages deployment, it is often '/<projectName>/'
21- baseUrl : '/' ,
21+ baseUrl : '/progressjava-site/ ' ,
2222
2323 // GitHub pages deployment config.
2424 // If you aren't using GitHub pages, you don't need these.
25- organizationName : 'progressjava ' , // Usually your GitHub org/user name.
26- projectName : 'progressjava' , // Usually your repo name.
25+ organizationName : 'ProgressJava ' , // Usually your GitHub org/user name.
26+ projectName : 'progressjava-site ' , // Usually your repo name.
2727
2828 onBrokenLinks : 'throw' ,
2929
You can’t perform that action at this time.
0 commit comments