Skip to content

Commit 7b5e8be

Browse files
kompreclaude
andauthored
Add automated release workflow (#14)
* Fix release workflow: add checkout step for gh command The check-release-label job needs to checkout the repository before running gh pr view command, otherwise it fails with 'not a git repository'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Bump version to 2025.9.0rc2 * Add [skip ci] to version bump commits Prevents version bump commits from triggering the test workflow. Tests already ran on the PR's actual code changes, so re-running them after a version-only change is unnecessary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Update pending task with bug fixes progress Track version bump and release workflow fixes that were merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Enable caching and remove quarto-cli dependency Performance improvements: - Add explicit uv cache configuration to all workflows - Enable cache with uv.lock as dependency glob - Reduces dependency installation time on cache hit Cleanup: - Remove quarto-cli from dev dependencies - Already using quarto-dev/quarto-actions/setup in workflows - Eliminates redundant 100+ package dependency tree Applied to: test.yml, version-bump.yml, release.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8da098a commit 7b5e8be

6 files changed

Lines changed: 39 additions & 1405 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
should-release: ${{ steps.check.outputs.release }}
1414
is-test: ${{ steps.check.outputs.test }}
1515
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
1619
- name: Check for release labels
1720
id: check
1821
env:
@@ -50,6 +53,8 @@ jobs:
5053
uses: astral-sh/setup-uv@v6
5154
with:
5255
version: "latest"
56+
enable-cache: true
57+
cache-dependency-glob: "uv.lock"
5358

5459
- name: Install dependencies
5560
run: uv sync --locked --all-extras --dev

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
uses: astral-sh/setup-uv@v6
2424
with:
2525
version: "latest"
26+
enable-cache: true
27+
cache-dependency-glob: "uv.lock"
2628

2729
- name: Install Quarto
2830
uses: quarto-dev/quarto-actions/setup@v2

.github/workflows/version-bump.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
uses: astral-sh/setup-uv@v6
4141
with:
4242
version: "latest"
43+
enable-cache: true
44+
cache-dependency-glob: "uv.lock"
4345

4446
- name: Get current version
4547
id: current-version
@@ -96,7 +98,7 @@ jobs:
9698
if git diff --staged --quiet; then
9799
echo "No changes to commit"
98100
else
99-
git commit -m "Bump version to ${{ steps.bump.outputs.new_version }}"
101+
git commit -m "Bump version to ${{ steps.bump.outputs.new_version }} [skip ci]"
100102
git push
101103
fi
102104

_todo/pending/new-release-workflow.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,20 @@
3535
- ✅ Created `.github/RELEASE.md` documentation
3636
- ✅ Updated `CLAUDE.md` with release workflow section
3737

38+
#### Bug Fixes (Post-merge)
39+
- 🐛 Fixed version bump workflow to apply multiple bumps in single command
40+
- Issue: PR #11 had 3 workflow runs (one per label) all failing
41+
- Root cause: Workflow triggered on `synchronize` + bumps applied sequentially
42+
- Solution: Removed `synchronize` trigger, build single `uv version --bump x --bump y` command
43+
- Commit: 025ada7
44+
- 🐛 Fixed release workflow missing checkout step
45+
- Issue: `gh pr view` failed with "not a git repository"
46+
- Solution: Added checkout step before checking labels
47+
- Commit: 9fdef71
48+
- ✅ Both fixes merged to `dev` via PR #13
49+
3850
#### Next Steps
39-
- Create test PR to validate version-bump workflow
51+
- Test version bump workflow on a test PR
4052
- Configure GitHub Environments (pypi, testpypi)
4153
- Configure PyPI Trusted Publishing
4254
- Test release to TestPyPI

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "quarto-batch-convert"
3-
version = "2025.9.0rc1"
3+
version = "2025.9.0rc2"
44
description = "Converts multiple Jupyter notebooks to Quarto documents at once"
55
readme = "README.md"
66
license = "MIT"
@@ -19,7 +19,6 @@ keywords = ["quarto", "jupyter", "notebook", "converter", "cli"]
1919
[dependency-groups]
2020
dev = [
2121
"pytest>=8.4.1",
22-
"quarto-cli>=1.7.33",
2322
]
2423

2524
[project.scripts]

0 commit comments

Comments
 (0)