Skip to content

Commit 0573cf4

Browse files
committed
Prep v0.0.2
1 parent 0527bc9 commit 0573cf4

2 files changed

Lines changed: 23 additions & 19 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# .github/workflows/deploy-docs.yml
22
name: Deploy Docs (on latest push to main branch)
33
# It builds and deploys the latest version of the documentation to GitHub Pages.
4-
# IMPORTANT: Ensure Repo Settings / Pages / Build and deployment / Set Source to `GitHub Actions`.
5-
4+
# IMPORTANT: Ensure Repo Settings / Pages / Build and deployment / Set Source to `Deploy from a branch`,
5+
# and set Branch = `gh-pages`, Folder = `/`.
6+
# Note: mike manages dev/ and versioned docs on gh-pages branch.
7+
#
68
# CI PHASES A-B-C-D:
79
# - Assemble: Install dependencies, verify environment setup
810
# - Baseline: Core validation (types exist, lint passes, tests pass)
@@ -15,9 +17,7 @@ on:
1517
workflow_dispatch:
1618

1719
permissions:
18-
contents: write # gh-pages deployment
19-
pages: write
20-
id-token: write
20+
contents: write # gh-pages deployment via mike
2121

2222
concurrency:
2323
group: pages-${{ github.ref }}
@@ -69,18 +69,14 @@ jobs:
6969
- name: D1) Build docs (mkdocs --strict)
7070
run: uv run mkdocs build --strict
7171

72-
- name: D2) Assert site artifact exists
72+
- name: D2) Configure git author for gh-pages pushes
7373
run: |
74-
test -d site && test -f site/index.html || {
75-
echo "ERROR: MkDocs build produced no site/index.html"
76-
exit 1
77-
}
74+
git config user.name "github-actions[bot]"
75+
git config user.email "github-actions[bot]@users.noreply.github.com"
7876
79-
- name: D3) Upload site as artifact
80-
uses: actions/upload-pages-artifact@v4
81-
with:
82-
path: ./site
83-
84-
- name: D4) Deploy to GitHub Pages
85-
id: deployment
86-
uses: actions/deploy-pages@v4
77+
- name: D3) Deploy dev channel with mike (keeps other versions)
78+
run: |
79+
# Publish the dev docs to gh-pages under /dev/
80+
# If gh-pages does not exist yet, mike will create it on first push.
81+
uv run mike deploy --push --update-aliases dev
82+
# Do not set default here; release workflow will set 'latest' as default.

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0
1414

1515
---
1616

17+
## [0.0.2] - 2025-10-28
18+
19+
### Changed
20+
- **Updated actions** to use mike in both
21+
22+
---
23+
1724
## [0.0.1] - 2025-10-28
1825

1926
### Added
@@ -31,5 +38,6 @@ and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0
3138
Tag the repository with `vX.Y.Z` to publish a release.
3239
- Documentation and badges are updated per tag and aliased to **latest**.
3340

34-
[Unreleased]: https://github.com/civic-interconnect/civic-transparency-py-sdk/compare/v0.0.1...HEAD
41+
[Unreleased]: https://github.com/civic-interconnect/civic-transparency-py-sdk/compare/v0.0.2...HEAD
42+
[0.0.2]: https://github.com/civic-interconnect/civic-transparency-py-sdk/releases/tag/v0.0.1
3543
[0.0.1]: https://github.com/civic-interconnect/civic-transparency-py-sdk/releases/tag/v0.0.1

0 commit comments

Comments
 (0)