Skip to content

Commit

Permalink
👷 Add testnet deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Dec 19, 2024
1 parent 6151a8a commit fad4b21
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy to testnet.liker.land

on:
push:
branches:
- 'deploy/testnet'

env:
IS_TESTNET: 'TRUE'

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: testnet
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: |
src/package-lock.json
functions/package-lock.json
- name: Dependencies
run: npm --prefix src install && npm --prefix functions install && cp -r src/nuxt.config.js src/config src/tailwind.config.js functions/
- name: Add robots.txt
run: |
echo 'User-agent: *' > public_base/robots.txt
echo 'Disallow: /' >> public_base/robots.txt
- uses: w9jds/setup-firebase@main
with:
tools-version: 11.30.0
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
- run: firebase deploy --project civic-liker-testnet -f
env:
GA_TRACKING_ID: ${{ vars.GA_TRACKING_ID }}
AD_CONVERSION_ID: ${{ vars.AD_CONVERSION_ID }}
CRISP_WEBSITE_ID: ${{ vars.CRISP_WEBSITE_ID }}
STRIPE_PUBLIC_KEY: ${{ vars.STRIPE_PUBLIC_KEY }}
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_PUBLISH_RELEASE: 'TRUE'

0 comments on commit fad4b21

Please sign in to comment.