-
Notifications
You must be signed in to change notification settings - Fork 18
42 lines (42 loc) · 1.07 KB
/
pull_request.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
name: pull_request
on:
push:
branches-ignore: '**'
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
build-preview:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v10
with:
name: note-maps
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix shell -c make -e download DEBUG=
- run: nix shell -c make -e build DEBUG=
- uses: actions/upload-artifact@v2
with:
name: result
path: ./out/
deploy-preview:
needs:
- build-preview
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/download-artifact@master
with:
name: result
path: ./out/
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: hosting:channel:deploy "$GITHUB_SHA"
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_ID: note-maps
PROJECT_PATH: ./build/firebase/