-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1012 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: cv-maxdaten-io
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix-shell --pure --run 'make pages'
- name: Upload pages
uses: actions/[email protected]
with:
name: pages
path: build
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: pages
path: build
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}