-
Notifications
You must be signed in to change notification settings - Fork 96
48 lines (39 loc) · 1.02 KB
/
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
44
45
46
47
48
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v25
- name: Cachix
uses: cachix/cachix-action@v14
with:
name: haskell-org
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build Site
# we run the checks as a separate step
run: >
nix build \
--verbose \
--print-build-logs \
--file . \
built -o built-site \
--arg doCheck false \
--extra-experimental-features nix-command
- name: Check Links
run: >
nix shell \
--quiet \
--file . \
linkchecker \
--extra-experimental-features nix-command \
--command linkchecker built-site
- uses: actions/upload-artifact@v4
with:
name: www.haskell.org
path: built-site*