-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1010 Bytes
/
build.yaml
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
name: Build
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "30 2 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: cachix/install-nix-action@v16
- name: Install dependencies
run: nix develop --command -- yarn
- name: Build
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
# Allow the build to retry, elm has an issue were
# it fails to build because "constraints are too wide"
# but it isnt correct.
max_attempts: 3
retry_on: error
command: nix develop --command -- make build
# - name: Deploy to Github Pages
# uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./dist
# cname: beta.aspargesgaarden.no