This repository was archived by the owner on Jul 3, 2024. It is now read-only.
File tree 1 file changed +28
-6
lines changed
1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,32 @@ jobs:
31
31
name : nix-community
32
32
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
33
33
- run : nix build -L --show-trace .#static-docs
34
- - run : ls -la .
35
- - name : Deploy
36
- uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
37
- if : ${{ github.ref == 'refs/heads/main' }}
34
+ - run : |
35
+ mkdir -p _site
36
+ cp -r ./result/lib/node_modules/docs-static/public/* _site
37
+ ls -la _site
38
+ chmod -c -R +rX "_site/" | while read line; do
39
+ echo "::warning title=Invalid file permissions automatically fixed::$line"
40
+ done
41
+ - uses : actions/upload-artifact@v2
38
42
with :
39
- github_token : ${{ secrets.GITHUB_TOKEN }}
40
- publish_dir : ./result/lib/node_modules/docs-static/public
43
+ path : _site/
44
+
45
+ deploy :
46
+ needs : build
47
+
48
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
49
+ permissions :
50
+ pages : write # to deploy to Pages
51
+ id-token : write # to verify the deployment originates from an appropriate source
52
+
53
+ # Deploy to the github-pages environment
54
+ environment :
55
+ name : github-pages
56
+ url : ${{ steps.deployment.outputs.page_url }}
57
+ runs-on : ubuntu-latest
58
+ steps :
59
+ - name : Deploy to GitHub Pages
60
+ id : deployment
61
+ uses : actions/deploy-pages@v2
62
+
You can’t perform that action at this time.
0 commit comments