ci: replace semantic-release with tag-triggered manual release - #78
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Repositories should no longer auto-publish new versions to GitHub Releases and
package registries. New releases must be voted on by the community first, so
releases are now cut manually by pushing a git tag.
Changes in this PR:
.releaserc.json(semantic-release config)semantic-releasejob from.github/workflows/ci.yml, which ransemantic-release on every push to auto-publish
.github/workflows/release.yml- a manual, tag-triggered release workflow:vX.Y.Z-rcN-> GitHub pre-release with the source tarball (for theApache release vote)
vX.Y.Z-> GitHub release with the source tarball (the Go module isthen picked up automatically by proxy.golang.org)
casbin-mongodb-adapter-<version>-incubating-src.tar.gz+.sha512workflow does not sign anything and does not touch other Apache
infrastructure
DISCLAIMERandNOTICE(Apache incubation compliance)No Go source code or
go.modis changed; the test pipeline is kept unchanged.Verification
v1.4.0-rc1-> pre-release,v1.4.0->release, invalid tags -> workflow fails
(
git archive+sha512sum)