8
8
build-nix :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2.4.0
11
+ - uses : actions/checkout@v3
12
12
13
13
- name : Install Nix
14
- uses : cachix/install-nix-action@v16
14
+ uses : cachix/install-nix-action@v20
15
15
with :
16
- install_url : https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
17
- install_options : ' --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
16
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
18
17
extra_nix_config : |
19
- experimental-features = nix-command flakes
20
18
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
19
+ allow-import-from-derivation = true
20
+ auto-optimise-store = true
21
+ experimental-features = nix-command flakes
22
+ substituters = https://cache.nixos.org https://cache.iog.io https://cache.zw3rk.com
23
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=
21
24
22
25
- name : Build with cachix
23
- uses : cachix/cachix-action@v10
26
+ uses : cachix/cachix-action@v12
24
27
with :
25
28
name : hakyll-nix-template
26
29
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
27
30
28
- - run : nix build
31
+ - run : nix build --accept-flake-config
29
32
30
33
- name : Artifact pages
31
34
uses : actions/upload-artifact@v2
@@ -45,12 +48,11 @@ jobs:
45
48
name : pages
46
49
path : result
47
50
48
- - name : GitHub Pages
51
+ - name : Deploy to GitHub Pages
49
52
if : success()
50
- uses : crazy-max/ghaction-github-pages@v2.6 .0
53
+ uses : crazy-max/ghaction-github-pages@v3.1 .0
51
54
with :
52
55
build_dir : result
53
56
target_branch : gh-pages
54
- keep_history : false
55
57
env :
56
58
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments