frontend: update github campaign page event tracking #2913
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
name: Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./web | |
steps: | |
- uses: actions/checkout@v2.4.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2.5.1 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: web/package-lock.json | |
- name: Install | |
run: npm ci --prefer-offline --no-audit | |
- name: Prefetch | |
run: npm run prefetch | |
- name: Build 🏗️ | |
run: npm run build | |
env: | |
SENTRY_DSN: https://ea6017f8ee534468b308a2a6c949895a@o226447.ingest.sentry.io/6588620 | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
TIDBCLOUD_HOST: tidbcloud.com | |
- name: Deploy to ossinsight.io 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: web/build # The folder the action should deploy. |