-
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.
* ci: fix prax website deploy 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. * rebase & fix lint --------- Co-authored-by: Conor Schaefer <[email protected]> Co-authored-by: Gabe Rodriguez <[email protected]>
- Loading branch information
1 parent
e9b0d0d
commit 237ee61
Showing
3 changed files
with
21 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,6 @@ | ||
{ | ||
"hosting": { | ||
"public": "apps/prax-marketing-site/dist", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"] | ||
} | ||
} |