-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (30 loc) · 895 Bytes
/
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
name: Deploy to production
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v18
- name: Cache elm home
uses: actions/cache@v3
env:
cache-name: cache-elm-home
with:
path: ~/.elm
key: ${{ runner.os }}-elm-home-${{ hashFiles('**/elm.json') }}
- name: Install Dependencies
run: nix-shell --run "just install-deps"
- name: Build
run: nix-shell --run "just production-build"
- name: Publish to Fission
uses: fission-codes/publish-action@v1
with:
machine_key: ${{ secrets.FISSION_PRODUCTION_KEY }}
build_dir: ./build
app_url: drive.fission.app