Skip to content

Commit

Permalink
Add docs publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Jul 9, 2024
1 parent 92db0ea commit 5fd3439
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate Docs

on:
push:
branches:
- main

pull_request:
paths:
- 'src/**'
- '.github/workflows/docs.yml'
- 'package.json'
- 'yarn.lock'

jobs:
generate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Build docs
run: |
yarn install
yarn build
- name: Deploy
if: ${{ github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: .build/docs
git-config-name: QMK Bot
git-config-email: hello@qmk.fm

0 comments on commit 5fd3439

Please sign in to comment.