Skip to content

Commit

Permalink
test: doc publish
Browse files Browse the repository at this point in the history
  • Loading branch information
geronimo-iia committed Jan 21, 2025
1 parent 17e80d5 commit 2e18ec7
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update documentation
name: Publish documentation

on:
# Runs on pushes targeting the default branch
Expand All @@ -17,9 +17,14 @@ concurrency:
group: "pages"
cancel-in-progress: false

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

jobs:
build:
name: Build doc
name: Publish
runs-on: ubuntu-latest
environment: pypi
strategy:
Expand All @@ -30,30 +35,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.18"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make install
- name: Build and publish Documentation
- name: Build Documentation
run: uv run poe docs
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: docs/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Publish Documentation
run: uv run poe docs-publish

0 comments on commit 2e18ec7

Please sign in to comment.