Skip to content

fix: correct branch trigger from main to master (upstream default branch)#16

Merged
Doorman11991 merged 3 commits into
Doorman11991:masterfrom
Zireael:pr/branch-fix
May 20, 2026
Merged

fix: correct branch trigger from main to master (upstream default branch)#16
Doorman11991 merged 3 commits into
Doorman11991:masterfrom
Zireael:pr/branch-fix

Conversation

@Zireael
Copy link
Copy Markdown
Contributor

@Zireael Zireael commented May 20, 2026

The build workflow wasn't triggering because I had branch name 'main' on my fork, and here we have 'master' branch. Classical example of "it works on my machine".

How to create new tag/release:

website - go to

https://github.com/Doorman11991/smallcode/releases/new

terminal - something like

git tag v0.7.0
git push origin v0.7.0

(CI should create the release + tarballs)

Also, automating changelog text for releases made with new version tag.
Added a workflow step that auto-extracts the matching section from CHANGELOG.md based on the tag version and passes it as the release body. Now git push v0.X.X produces a complete release with tarballs + changelog — zero manual steps.

How it works

  1. Tag push fires the workflow
  2. Build matrix runs (all 3 platforms)
  3. release job extracts the ## [X.X.X] section from CHANGELOG.md using awk
  4. softprops/action-gh-release creates the release with the extracted notes + tarballs

Edge cases handled:

  • No matching section in CHANGELOG → empty body (harmless, still uploads tarballs)
  • Test tags like v0.2.5-test → no match, no error

Zireael added 3 commits May 20, 2026 08:43
- workflow triggers were set to main but upstream repo uses master
- README install URLs and script headers point to master
- install.sh ARM arch tag: Arm64 -> ARM64 to match GHA runner.arch
@Doorman11991 Doorman11991 merged commit 77fd6c6 into Doorman11991:master May 20, 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.

2 participants