Skip to content

Commit eadb35b

Browse files
authored
fix: docs deployment (#19)
1 parent f46cbf5 commit eadb35b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Docs
33
on:
44
pull_request:
55
branches: [main]
6-
release:
7-
types: [published]
8-
9-
permissions:
10-
contents: write
116

127
jobs:
138
docs:
@@ -24,10 +19,3 @@ jobs:
2419

2520
- name: Build docs
2621
run: uv run mkdocs build
27-
28-
- name: Deploy to GitHub Pages
29-
if: github.event_name == 'release'
30-
uses: peaceiris/actions-gh-pages@v4
31-
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./site

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ jobs:
2929
with:
3030
generate_release_notes: true
3131
files: dist/*
32+
33+
- name: Install docs dependencies
34+
run: uv sync --extra docs
35+
36+
- name: Build docs
37+
run: uv run mkdocs build
38+
39+
- name: Deploy to GitHub Pages
40+
uses: peaceiris/actions-gh-pages@v4
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: ./site

0 commit comments

Comments
 (0)