File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed
Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change 2222 - ' website/**'
2323 - ' .github/workflows/**'
2424
25- permissions :
26- contents : write
27-
2825defaults :
2926 run :
3027 shell : bash
3128 working-directory : ./website
3229
3330jobs :
34- deploy :
31+ build :
32+ name : Build Docusaurus
3533 runs-on : ubuntu-latest
3634 steps :
3735 - uses : actions/checkout@v4
4341 cache : npm
4442 - uses : actions4git/setup-git@v1
4543 - name : Generate versioned docs
46- run : |
47- ./website/build_versioned_docs.sh
44+ run : build_versioned_docs.sh
4845 - name : Install dependencies
4946 run : npm ci
5047 - name : Build website
@@ -53,14 +50,22 @@ jobs:
5350 uses : actions/upload-pages-artifact@v3
5451 with :
5552 path : build
53+ deploy :
54+ name : Deploy to GitHub Pages
55+ needs : build
5656
57+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
58+ permissions :
59+ pages : write # to deploy to Pages
60+ id-token : write # to verify the deployment originates from an appropriate source
5761
58- - name : Deploy website
59- env :
60- USE_SSH : true
61- run : |
62- git config --global user.name 'GitHub Actions'
63- git config --global user.email '[email protected] ' 64- npm ci
65- npm run build -- --no-minify
66- npm run deploy -- --skip-build
62+ # Deploy to the github-pages environment
63+ environment :
64+ name : github-pages
65+ url : ${{ steps.deployment.outputs.page_url }}
66+
67+ runs-on : ubuntu-latest
68+ steps :
69+ - name : Deploy to GitHub Pages
70+ id : deployment
71+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments