File tree Expand file tree Collapse file tree 1 file changed +25
-15
lines changed
Expand file tree Collapse file tree 1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change 66 - main
77 workflow_dispatch :
88
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : true
17+
918jobs :
10- docs :
19+ build :
1120 runs-on : ubuntu-latest
1221 steps :
1322 - uses : actions/setup-node@v6
@@ -19,17 +28,18 @@ jobs:
1928 - run : npm install --ignore-scripts
2029 - run : npm run build:all
2130 - run : npm run docs
22- - name : Deploy to gh-pages
23- if : ${{ github.event_name == 'push' }}
24- run : |
25- git config --global user.name thegecko
26- git config --global user.email github@thegecko.org
27- TMPDIR=`mktemp -d`
28- cp -R docs/* $TMPDIR
29- git checkout gh-pages
30- git pull
31- git clean -fd
32- cp -R $TMPDIR/* ./
33- git add .
34- git commit --allow-empty --message "Automatic Deployment"
35- git push
31+ - name : Upload Pages artifact
32+ uses : actions/upload-pages-artifact@v4
33+ with :
34+ path : docs
35+
36+ deploy :
37+ runs-on : ubuntu-latest
38+ needs : build
39+ environment :
40+ name : github-pages
41+ url : ${{ steps.deployment.outputs.page_url }}
42+ steps :
43+ - name : Deploy to GitHub Pages
44+ id : deployment
45+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments