ci: fix prax website deploy (#31) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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@v3 | |
with: | |
version: 8 | |
- 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 }} |