Skip to content

Commit

Permalink
Merge pull request #3 from prax-wallet/deploy
Browse files Browse the repository at this point in the history
ci: add firebase configs
  • Loading branch information
conorsch authored Apr 16, 2024
2 parents ec6c6b3 + 83df76e commit 461348d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 35 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "prax-website-1aea3"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Builds the static site via pnpm, then copies that local directory's contents
# to Firebase, at: https://app.testnet.penumbra.zone
# to Firebase, at: https://praxwallet.com
name: Deploy static site
on:
# Support ad-hoc runs via dispatch, so we can deploy from
Expand All @@ -13,25 +13,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install
working-directory: apps/minifront

- name: Build static site
run: pnpm build
working-directory: apps/minifront

- name: Deploy dapp static site to firebase
uses: w9jds/firebase-action@v2.0.0
uses: w9jds/firebase-action@v13
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_ID: penumbra-dapp
PROJECT_PATH: apps/minifront/dist
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Firebase cache
.firebase/

# Misc
.DS_Store
*.pem
.idea
.idea
25 changes: 0 additions & 25 deletions apps/prax-marketing-site/firebase.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/prax-marketing-site/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "minifront",
"name": "prax-marketing-website",
"version": "4.2.0",
"private": true,
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions firebase.json
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/**"
]
}
}
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"cache": false,
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
},
Expand Down

0 comments on commit 461348d

Please sign in to comment.