Switch publish workflow to tag-based triggers instead of main branch push #9
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/scalatags-webawesome#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current publish workflow triggers on every push to
main, which publishes a new version on every merge. This should be changed to tag-based triggers (v*) so that releases are intentional.Current behavior
Proposed change
This way publishing only happens when a version tag is pushed (e.g.
git tag v0.2.0 && git push origin v0.2.0), giving explicit control over releases.Resolved by #11 (
5a2dec4). The publish workflow now publishes to Maven Central only onv*tags (if: github.ref_type == 'tag'). A push tomainpublishes only the -SNAPSHOT to the Forgejo Maven registry, and that is intended. A tag-only trigger would stop those snapshot publishes, so we do not change the trigger.