Skip to content

Commit

Permalink
Add deploy-docs.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Aug 28, 2023
1 parent 42a0b49 commit 5e38543
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy docs
on:
push:
branches:
- master
- main
paths:
- '.github/workflows/deploy-docs.yml'
- 'pyproject.toml'
- 'poetry.lock'
- 'mkdocs.yml'
- 'docs/*'
- 'async-tkinter-loop/*'

permissions:
contents: write

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

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
cache: "poetry"
cache-dependency-path: poetry.lock

- name: Install dependencies
run: poetry install --no-root --group=docs

- name: Deploy docs
run: poetry run mkdocs gh-deploy --force

0 comments on commit 5e38543

Please sign in to comment.