diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..38f3d46a --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "prax-website-1aea3" + } +} diff --git a/.github/workflows/deploy-firebase.yml b/.github/workflows/deploy-firebase.yml index ccd00d70..83358fde 100644 --- a/.github/workflows/deploy-firebase.yml +++ b/.github/workflows/deploy-firebase.yml @@ -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/wasm-pack-action@v0.4.0 + 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 diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..e2af4f09 --- /dev/null +++ b/firebase.json @@ -0,0 +1,10 @@ +{ + "hosting": { + "public": "apps/prax-marketing-site/dist", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + } +}