Skip to content

Commit

Permalink
feat(ci): add docs deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mharrisb1 committed Apr 24, 2024
1 parent e30dd83 commit 77bd06f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Docs

on:
workflow_dispatch:
push:
branches:
- "main"

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.2

- name: Install dependencies
shell: bash
run: |
poetry config virtualenvs.in-project true && \
poetry install --with dev
- name: Build docs
shell: bash
run: poetry run mkdocs build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./site"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 77bd06f

Please sign in to comment.