Skip to content

chore: add release guide to dev docs, improve release CI, update version script - #354

Merged
wpbonelli merged 6 commits into
MODFLOW-ORG:developfrom
wpbonelli:docs/consolidate-release-guide
Sep 8, 2026
Merged

chore: add release guide to dev docs, improve release CI, update version script#354
wpbonelli merged 6 commits into
MODFLOW-ORG:developfrom
wpbonelli:docs/consolidate-release-guide

Conversation

@wpbonelli

Copy link
Copy Markdown
Member
  • add release instructions to DEVELOPER.md
  • automate the post-release reset step in the release workflow
  • add --release and --post-release options to update_version.py

cf MODFLOW-ORG/modflowapi#123

wpbonelli and others added 5 commits September 6, 2026 19:45
Rewrite the Releasing section to match the wording used in
MODFLOW-ORG/modflowapi's DEVELOPER.md: document trusted publishing and the
required release environment, add the trusted-publisher rename caveat, add a
conda-forge step, and describe the develop reset. Fix the stale master branch
references (the repo moved to main).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVbcrMW2Ax1LwR9bskJdeu
The release branch is pushed by github-actions[bot], so GitHub fires no push
or pull_request event for it and the draft release PR carries no checks. Make
ci.yml a reusable workflow with a ref input, and have release.yml run it
against the v<version> branch between prep and opening the PR. The PR job now
depends on that run, so a release cannot be drafted while CI is red.

Splits the PR creation out of prep into its own job and passes the changelog
through the existing artifact. The rtd job is skipped on these called runs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVbcrMW2Ax1LwR9bskJdeu
Add a workflow_dispatch trigger to release.yml with branch, version and
run_tests inputs, mirroring modflowapi. The prep job resolves the version
(from the version input, else from version.txt with its development suffix
removed, else from the branch name on the push path), creates the v<version>
branch itself, and pushes it. Pushing a release branch by hand keeps working.

update_version.py gains --release (the current version with its development
segment removed) and --post-release (the minor incremented with a '.dev0'
suffix, for resetting develop). --get becomes --dry-run; the "Updated ..."
lines move to stderr and the resolved version is printed on stdout whether
or not it was written, so the develop reset can write and capture it in one
call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVbcrMW2Ax1LwR9bskJdeu
@wpbonelli wpbonelli added this to the 1.10.0 milestone Sep 8, 2026
Pull requests are squash merged, so the title becomes the commit message
the release notes are generated from, and git-cliff drops anything that is
not a conventional commit header without saying so. The title check runs
on every pull request except the release and reset ones, which a bot opens
and which are not squash merged.

Ports MODFLOW-ORG/modflowapi#115.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GAtFFGBtJSR8f1bY2VNEZT
@wpbonelli
wpbonelli marked this pull request as ready for review September 8, 2026 12:50
@wpbonelli
wpbonelli merged commit e7ea2c1 into MODFLOW-ORG:develop Sep 8, 2026
16 checks passed
@wpbonelli
wpbonelli deleted the docs/consolidate-release-guide branch September 8, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant