mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 10:45:42 +01:00
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:
parent
8af5ed3347
commit
57a829a8e8
3 changed files with 7 additions and 1 deletions
26
.github/workflows/publish-docs.yml
vendored
Normal file
26
.github/workflows/publish-docs.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue