-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (37 loc) · 1.14 KB
/
deploy-firebase.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
---
# Builds the static site via pnpm, then copies that local directory's contents
# to Firebase, at: https://praxwallet.com
name: Deploy Prax marketing site
on:
# Support ad-hoc runs via dispatch, so we can deploy from
# unmerged feature branches if necessary.
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Deploy
# The build step takes a lot of CPU, so we'll bump up to 8 vCPUs.
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install npm dependencies
run: pnpm install
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
- name: Build static site
run: pnpm build
- name: Deploy dapp static site to firebase
# N.B. the firebase-action helper doesn't support semver, e.g. `@v13`,
# so we hardcode a version.
uses: w9jds/[email protected]
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}