Skip to content

ci(release): auto-create GitHub Release on tag push#46

Merged
juice094 merged 1 commit into
mainfrom
feat/auto-release-creation
May 15, 2026
Merged

ci(release): auto-create GitHub Release on tag push#46
juice094 merged 1 commit into
mainfrom
feat/auto-release-creation

Conversation

@juice094
Copy link
Copy Markdown
Owner

Problem

Current release workflow requires the GitHub Release to be manually created before the workflow runs, because both build jobs only perform gh release upload. This creates friction and risk of failed uploads if the release doesn't exist.

Solution

Add a dedicated create-release job that:

  • Runs on ubuntu-latest before both build jobs
  • Checks if the release already exists via gh release view
  • Creates it idempotently with --generate-notes if missing
  • Both build-windows and build-linux now needs: create-release to avoid upload races

Result

Pushing a version tag (e.g. v0.21.0) now fully automates the entire release pipeline:

  1. Create Release with auto-generated notes
  2. Build Windows binary + upload
  3. Build Linux binary + upload

Zero manual intervention required.

Add create-release job that runs before build jobs.
Uses gh release view/create with --generate-notes for idempotency.
Removes manual release creation step from release workflow.
@juice094 juice094 merged commit 316ab88 into main May 15, 2026
6 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