Update fumadocs #248
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- main | |
- preview | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
permissions: | |
contents: write # push branch | |
id-token: write # get a github access token with buildmedic github app | |
pull-requests: write # open PR | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
command: | |
- pnpm --filter website deployment | |
- pnpm --filter docs-website deployment | |
- PUBLIC_BASE_PATH=/docs pnpm --filter docs-website deployment | |
env: | |
DOPPLER_TOKEN: ${{ github.ref_name == 'main' && secrets.DOPPLER_PRODUCTION_TOKEN || secrets.DOPPLER_PREVIEW_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 24 | |
registry-url: https://registry.npmjs.org/ | |
- uses: pnpm/action-setup@master | |
with: | |
version: 10 | |
run_install: false | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: pnpm install --frozen-lockfile=false | |
- run: pnpm bootstrap | |
- run: ${{ matrix.command }} | |
# - uses: remorses/buildmedic@opencode | |
# env: | |
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
# with: | |
# run: 'pnpm deployment' |