Add Fern docs platform: scaffolding, CI/CD, ecosystem diagram, and ne… #1
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
| # Publishes docs to production on every push to main that touches docs/fern, | |
| # and on manual dispatch. Requires the FERN_TOKEN repository secret. | |
| name: Publish Fern Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - 'fern/**' | |
| - 'package.json' | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| name: Publish docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v6 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Publish | |
| run: npm run docs:publish | |
| env: | |
| FERN_TOKEN: ${{ secrets.FERN_TOKEN }} |