Move fern workflows to root workflows folder (#1273)

* Move fern workflows to root workflows folder

* Only run fern actions when docu has changed
This commit is contained in:
Iván Martínez 2023-11-18 20:47:44 +01:00 committed by GitHub
parent 8af5ed3347
commit 57a829a8e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

26
.github/workflows/publish-docs.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: publish docs
on:
push:
branches:
- main
paths:
- "fern/**"
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
- name: Download Fern
run: npm install -g fern-api
- name: Generate and Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --docs --log-level debug