aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 3dd1f1ad53f41678ed0267dada2f2c5d487b5c5a (about) (plain) (blame)
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
image: nixos/unstable
repositories:
  nixpkgs: https://nixos.org/channels/nixpkgs-unstable
triggers:
  - condition: failure
    action: email
    to: EuAndreh <ci@euandre.org>
sources:
  - https://git.sr.ht/~euandreh/website
secrets:
  - 7159f943-811f-402d-bb6d-37cd764dc728
tasks:
  - tests: |
      cd website/
      nix-build -A test
  - check-branch: |
      cd website/
      if [[ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]]; then
          complete-build;
      fi
  - docs: |
      cd website/
      nix-build -A publishScript
      source ./scripts/publish-env.sh
      ./result/bin/publish.sh