Skip to content

Commit

Permalink
feat: CI to build & deploy gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelLarkin committed Feb 19, 2024
1 parent 84cc856 commit 1156190
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy docs

on:
push:
branches:
- main
paths:
- "**.md"
- "mkdocs.yml"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
docs:
# Create latest docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup doc deploy
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
REQUIREMENTS: docs/requirements.txt

0 comments on commit 1156190

Please sign in to comment.