File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-docs
2+ on :
3+ release :
4+ types : [created]
5+ push :
6+ branches :
7+ - " **"
8+ tags :
9+ - " **"
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ - name : Setup Pages
17+ uses : actions/configure-pages@v5
18+ - run : npm ci
19+ - name : Build docs
20+ run : npm run docs
21+ - name : Upload artifact
22+ uses : actions/upload-pages-artifact@v3
23+ with :
24+ path : ./docs/build
25+
26+ deploy :
27+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
28+ permissions :
29+ pages : write
30+ id-token : write
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+ runs-on : ubuntu-latest
35+ needs : build
36+ steps :
37+ - name : Deploy to GitHub Pages
38+ id : deployment
39+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments