| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- name: Publish Documentation
- on:
- workflow_dispatch:
- branches:
- - master
- push:
- branches:
- - master
- paths:
- - 'docs/**'
- permissions:
- contents: read
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
- env:
- # Among other things, opts out of Turborepo telemetry
- # See https://consoledonottrack.com/
- DO_NOT_TRACK: '1'
- NEXT_TELEMETRY_DISABLED: '1'
- VERCEL_TELEMETRY_DISABLED: '1'
- # Enables Turborepo Remote Caching.
- TURBO_REMOTE_CACHE_SIGNATURE_KEY: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- TURBO_TEAM: ${{ vars.TURBO_TEAM }}
- jobs:
- deploy-docs:
- runs-on: ubuntu-latest
- name: Deploy Documentation
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install Dependencies
- uses: ./.github/workflows/actions/install-dependencies
- - name: Install Isolated Docs Dependencies
- working-directory: ./docs/
- shell: bash
- run: pnpm install --ignore-workspace
- - name: Install Vercel CLI
- run: pnpm install -g vercel
- - name: Deploy to Vercel
- shell: bash
- env:
- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: |
- vercel pull --token="$VERCEL_TOKEN" --yes --environment=production
- vercel build --token="$VERCEL_TOKEN" --prod
- vercel deploy --token="$VERCEL_TOKEN" --archive=tgz --prebuilt --prod
|