-
-
Notifications
You must be signed in to change notification settings - Fork 30
24 lines (23 loc) · 880 Bytes
/
deploy.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
on:
push:
branches:
- master
jobs:
deploy:
name: Nix build and deploy GHCJS web app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= miso-haskell.cachix.org-1:6N2DooyFlZOHUfJtAx1Q09H0P5XXYzoxxQYiwn6W1e8= haskell-pretty-simple.cachix.org-1:AWHkzPidwcDzWUIUjKcx/PYgud2OBAa9SNUEoIOsATY=
substituters = https://cache.nixos.org/ https://miso-haskell.cachix.org https://haskell-pretty-simple.cachix.org
- name: Build
run: |
nix-build ./web
cp -rL result result-no-symlinks
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: result-no-symlinks/bin/web.jsexe