Skip to content

Commit

Permalink
Don't lint on merge to main (already handled in PR), and deploy when …
Browse files Browse the repository at this point in the history
…merged (#6)
  • Loading branch information
jcoon97 authored Aug 8, 2023
1 parent 6f0c7c8 commit 89d609e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Docs

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Bundle OAS into single file
run: npx @redocly/cli@latest bundle spec.json --ext=json -o build/bundled

- name: Build Redocly HTML
run: npx @redocly/cli@latest build-docs build/bundled.json -o build/docs.html

- name: Deploy to GH Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
CLEAN: true
FOLDER: build

0 comments on commit 89d609e

Please sign in to comment.