Update fern docs (#1869)
This commit is contained in:
22
.github/workflows/publish-fern-docs.yml
vendored
Normal file
22
.github/workflows/publish-fern-docs.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Publish Fern Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/heads/main') && github.run_number > 1 }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Fern
|
||||
run: npm install -g fern-api
|
||||
|
||||
- name: Publish Docs
|
||||
env:
|
||||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
|
||||
run: fern generate --docs
|
||||
Reference in New Issue
Block a user