Skip to content

🐛 Fix build/deploy workflow #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 10 additions & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Deploy MkDocs to GitHub Pages

on:
push:
branches: [main]
pull_request:
branches: [main]
branches:
- main
pull_request:
branches:
- main

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

jobs:
build:
Expand All @@ -32,29 +32,16 @@ jobs:

- name: Install dependencies
run: |
poetry install --no-interaction --no-root
poetry install --no-root

- name: Build MkDocs site
- name: Build site with MkDocs
run: |
poetry run mkdocs build --strict

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site # MkDocs builds to ./site by default

deploy:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: oprypin/push-to-gh-pages@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
publish_dir: site
commit_message: 'Generate docs: '
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}