Skip to content

ci: tag releases and create GitHub releases automatically - #20

Merged
mertbekci merged 1 commit into
mainfrom
ci/auto-tag
Nov 19, 2026
Merged

mertbekci merged 1 commit into
mainfrom
ci/auto-tag

Conversation

@mertbekci

Copy link
Copy Markdown
Member

Releasing needed a maintainer to push a signed tag by hand and then to create the GitHub release. Now merging the release PR is enough, and the only manual step left is the environment approval.

  • tag.yml (new) runs on pushes to main that touch src/sdo/_version.py or CHANGELOG.md. It creates vX.Y.Z when CHANGELOG.md has a ## [X.Y.Z] - section and the tag does not exist yet. For X.Y.ZrcN it creates vX.Y.Z-rc.N.
    • The tag is created with a scrape-do-publisher App token (contents: write on this repo only). A tag created with GITHUB_TOKEN would not start publish.yml.
    • The API call runs on the self-hosted runners because of the org IP allow list. That job checks out no repository code.
    • A manual run creates nothing. It only reports the tag a push would create and checks that the App token can be minted.
  • publish.yml: the build job writes the release notes (install line + CHANGELOG section). A new github-release job then creates the GitHub release once smoke passes. It runs on a self-hosted runner and installs a pinned, checksum-verified gh, the same way sdo-cli does.
  • CONTRIBUTING: the workflow table and the release steps are updated.

Before the first automatic tag, the App must be installed on this repository and added as a bypass actor to the "release tags" ruleset. The org secrets are already shared with this repository.

Signed-off-by: Mert Bekci <mert@scrape.do>
@mertbekci
mertbekci merged commit d76b32b into main Nov 19, 2026
17 checks passed
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