Skip to content

Commit

Permalink
Update publish-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
edmcquinn authored Mar 18, 2024
1 parent 2fbb6a2 commit a530dcb
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,18 @@
name: fern
name: publish-docs

on:
push:
branches:
- main
on:
push:
branches:
- main

jobs:
check:
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: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Install Fern
run: npm install -g fern-api

- name: Validate API configuration
run: fern check

publish-docs:
needs: fern-check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Install Fern
run: npm install -g fern-api

Expand Down

0 comments on commit a530dcb

Please sign in to comment.