File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Build GitHub Pages"
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+
7+ # Allows running this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow one concurrent deployment
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : true
20+
21+ jobs :
22+ deploy :
23+ environment :
24+ name : github-pages
25+ url : ${{ steps.deployment.outputs.page_url }}
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v2.4.0
29+ - uses : cachix/install-nix-action@v16
30+ with :
31+ nix_path : nixpkgs=channel:nixos-unstable
32+ - uses : cachix/cachix-action@v10
33+ with :
34+ name : myme
35+ authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
36+ - name : Build Static Site
37+ run : |
38+ nix build .#site
39+ cp --recursive --dereference --no-preserve=mode,ownership result public
40+ - name : Setup Pages
41+ uses : actions/configure-pages@v2
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v1
44+ with :
45+ # Upload entire repository
46+ path : ' ./public'
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments