-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.25 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
49
50
51
52
53
54
55
name: Deploy
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Build generator
run: nix-build --impure
# env:
# NIXPKGS_ALLOW_BROKEN: 1
# - name: Setup Haskell (temporary)
# uses: haskell/actions/setup@v2
# with:
# ghc-version: '9.0.2'
# - name: Cache (temporary)
# uses: actions/cache@v3
# with:
# path: |
# ${{ steps.setup-haskell.outputs.cabal-store }}
# dist-newstyle
# key: ubuntu-acinetobase-static
# - name: Build generator (temporary)
# run: cabal build
- name: Install dependencies
run: npm install
- name: Build
run: ./result/bin/build-site
# - name: Build (temporary)
# run: cabal run
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
cname: acinetobase.vib.be