Skip to content
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
35 changes: 21 additions & 14 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Build and Deploy to Netlify
name: Build and Deploy to GitHub Pages
on:
push:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -18,17 +20,22 @@ jobs:
run: uv sync --group docs
- name: Build Docs
run: uv run mkdocs build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3.0
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
publish-dir: './site'
production-branch: master
github-token: ${{ secrets.PERSONAL_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
path: ./site

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading