-
-
Notifications
You must be signed in to change notification settings - Fork 79
44 lines (37 loc) · 1.23 KB
/
deploy-fern-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Generate docs & postman collection
on:
push:
branches:
- main
paths:
- fern/**
workflow_dispatch:
inputs:
task_name:
description: 'Enter the name of the task'
required: false
default: 'deploy-fern-external'
jobs:
deploy-fern-external:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 17
- name: Install Fern
run: npm install -g fern-api
- name: Install Dependencies
run: yarn install
- name: Generate Production Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --docs --instance revert.docs.buildwithfern.com --log-level debug
- name: Generate sdks
run: fern generate --group external
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}