-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restores some crucial Firebase configs to straighten out the CD pipeline for updating the prax marketing website, hosted on Firebase. Uses a custom runner, to reduce job time from ~12m on ubuntu-latest to ~5m on the faster version.
- Loading branch information
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "prax-website-1aea3" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,21 +13,27 @@ on: | |
jobs: | ||
build: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
# 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 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: Install dependencies | ||
- 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 | ||
working-directory: apps/prax-marketing-site | ||
|
||
- name: Deploy dapp static site to firebase | ||
# N.B. the firebase-action helper doesn't support semver, e.g. `@v13`, | ||
|
@@ -37,4 +43,3 @@ jobs: | |
args: deploy | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
PROJECT_PATH: apps/prax-marketing-site/dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"hosting": { | ||
"public": "apps/prax-marketing-site/dist", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
] | ||
} | ||
} |