frontend: rephrase #2901
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/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
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://[email protected]/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. |