-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (32 loc) · 851 Bytes
/
build.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
name: Build App
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Publish app
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: fedimint
skipPush: true
continue-on-error: true
- uses: Swatinem/rust-cache@v2
- name: Build app
env:
FEDIMINT_BUILD_FORCE_GIT_HASH: ${{ github.sha }}
run: nix develop --command bash -c 'npm i && trunk build --release'
- name: Deploy app
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: webimint.sirion.io