feat: Updated TokenScript documentation WIP #85
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: 'frontend CI' | |
on: | |
push: | |
paths: | |
- '**' | |
pull_request: | |
paths: | |
- '**' | |
workflow_dispatch: | |
env: | |
ALIAS_DOMAIN_PREV: 'tokenscript-doc.vercel.app' | |
ALIAS_DOMAIN_PROD: '' | |
PROJ_PATH: '.' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: ${{ contains( | |
fromJson('["push", "workflow_dispatch"]'), | |
github.event_name) && | |
contains( | |
fromJson('["main", "prod"]'), | |
github.ref_name) | |
}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy to Vercel Action | |
uses: BetaHuhn/deploy-to-vercel-action@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
GITHUB_DEPLOYMENT_ENV: ${{ github.ref_name == 'prod' && 'production' || 'preview' }} | |
PRODUCTION: ${{ github.ref_name == 'prod' }} | |
ALIAS_DOMAINS: ${{ github.ref_name == 'prod' && env.ALIAS_DOMAIN_PROD || env.ALIAS_DOMAIN_PREV }} | |
VERCEL_SCOPE: 'smart-token-labs' |