This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
Setup Go generator for monorepo (#2943) #1
This file contains 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: publish-docs | |
on: | |
push: | |
paths: | |
- "fern/**" | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main') | |
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 --log-level debug |