Skip to content

chore(fdr): update git datamodel to reflect github api (#1496) #11

chore(fdr): update git datamodel to reflect github api (#1496)

chore(fdr): update git datamodel to reflect github api (#1496) #11

name: Deploy @fern-ui/docs-bundle (dev)
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: app-dev.buildwithfern.com
cancel-in-progress: true
jobs:
ignore:
runs-on: ubuntu-latest
outputs:
continue: ${{ steps.ignore.outputs.continue }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # used for turbo-ignore
- name: Install
uses: ./.github/actions/install
with:
run_install: false
- name: Ignore unchanged files
id: ignore
run: set +e; pnpx turbo-ignore @fern-ui/docs-bundle --fallback=HEAD^1; echo "continue=$?" >> $GITHUB_OUTPUT
deploy:
needs: ignore
if: needs.ignore.outputs.continue == 1
runs-on: ubuntu-latest
environment:
name: Production - app-dev.buildwithfern.com
url: ${{ steps.deploy.outputs.deployment_url }}
outputs:
deployment_url: ${{ steps.deploy.outputs.deployment_url }}
steps:
# set the ref to a specific branch so that the deployment is scoped to that branch (instead of a headless ref)
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name || github.ref }}
- name: Install
uses: ./.github/actions/install
- name: Build & Deploy to Vercel
id: deploy
run: |
pnpm vercel-scripts deploy app-dev.buildwithfern.com --token=${{ secrets.VERCEL_TOKEN }} --environment=production --force
echo "deployment_url=$(cat deployment-url.txt)" >> $GITHUB_OUTPUT