Skip to content

Commit

Permalink
ci: add mkdocs render and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vsheg committed Dec 14, 2023
1 parent ddc9641 commit a658084
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docs-mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_dispatch:

jobs:

render:
runs-on: ubuntu-latest
environment: build
steps:
- uses: actions/checkout@v4
- run: pipx install 'poetry==${{ vars.TARGET_POETRY_VERSION }}'
- uses: actions/setup-python@v5
with:
python-version: "${{ vars.TARGET_PYTHON_VERSION }}"
cache: poetry
- run: make cpu
- run: make docs
- uses: actions/upload-pages-artifact@v2
with:
name: github-pages
path: site/

deploy:
needs: render
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v2
id: deployment

0 comments on commit a658084

Please sign in to comment.