File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches : ["main"]
66
7+ # Branch-based Pages deployment via `docusaurus deploy`
78permissions :
8- contents : read
9- pages : write
10- id-token : write
11-
12- concurrency :
13- group : " pages"
14- cancel-in-progress : true
9+ contents : write
1510
1611jobs :
17- build :
12+ deploy :
1813 runs-on : ubuntu-latest
1914 steps :
2015 - uses : actions/checkout@v4
16+ with :
17+ # Required to push to gh-pages
18+ fetch-depth : 0
2119 - uses : pnpm/action-setup@v3
2220 with :
2321 version : 10
@@ -26,20 +24,12 @@ jobs:
2624 node-version : 22
2725 cache : " pnpm"
2826 - run : pnpm install --frozen-lockfile
29- # Build the Docusaurus site in apps/docs
30- # The previous filter didn't match any workspace package, so no build ran.
31- # Use the actual package name to ensure the build step executes.
32- - run : pnpm --filter "@gracefullight/docusaurus-plugin-docs" build
33- - uses : actions/upload-pages-artifact@v4
34- with :
35- path : apps/docs/build
36-
37- deploy :
38- needs : build
39- runs-on : ubuntu-latest
40- # Use the reserved GitHub Pages environment without URL expression
41- # to avoid job-level expression context limitations.
42- # environment: github-pages
43- steps :
44- - id : deploy
45- uses : actions/deploy-pages@v4
27+ - name : Configure git identity
28+ run : |
29+ git config user.name "github-actions[bot]"
30+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
31+ - name : Deploy with Docusaurus
32+ env :
33+ GIT_USER : github-actions[bot]
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ run : pnpm --filter "@gracefullight/docusaurus-plugin-docs" run deploy
Original file line number Diff line number Diff line change 1919 "private" : true ,
2020 "scripts" : {
2121 "build" : " pnpm prepare-docs && docusaurus build" ,
22+ "deploy" : " pnpm prepare-docs && docusaurus deploy" ,
2223 "dev" : " pnpm prepare-docs && docusaurus start" ,
2324 "prepare-docs" : " tsx ./scripts/prepare-docs.ts"
2425 }
You can’t perform that action at this time.
0 commit comments