Repository navigation
ci: create GitHub release after publishing to Maven Central - #62
Merged
alexgerardojacinto merged 2 commits intoNov 25, 2026
Merged
Conversation
alexgerardojacinto
requested review from
a team,
andredestro and
markemer
and removed request for
a team
November 24, 2026 13:05
andredestro
approved these changes
Nov 25, 2026
| working-directory: ./scripts | ||
| run: ./publish-android.sh No newline at end of file | ||
| run: ./publish-android.sh | ||
| - name: Create GitHub release |
There was a problem hiding this comment.
Nit, not blocking: could the release go in its own job (needs: publish-android) so only that job gets contents: write? The Gradle build would keep a read-only token, and a failed release could be retried with "Re-run failed jobs". Same applies to the other PRs in this batch.
Collaborator
Author
There was a problem hiding this comment.
Yeah I think we could do that
Collaborator
Author
|
Good catch, thanks. Switched the version headings in CHANGELOG.md from Leaving the separate release job out of this PR: the other PRs in this batch are already merged, so I'd rather keep them consistent. |
OS-pedrogustavobilro
approved these changes
Nov 25, 2026
alexgerardojacinto
deleted the
chore/RMET-5634/create-github-release-on-publish
branch
November 25, 2026 13:04
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
The "Publish Native Android Library" workflow now creates the GitHub tag and release itself, right after the library is published to Maven Central, so the release no longer has to be created by hand.
scripts/publish-android.sh: afterSuccess: Published to MavenCentral., writespublished=trueandversionto$GITHUB_OUTPUT. The existing "Duplicate ... skipping" path is unchanged, so a re-run for an already-published version does nothing..github/workflows/publish-android.yml:contents: read->contents: write, and a new Create GitHub release step that:mainornext;<version>(same naming as the existing tags, novprefix) on the commit that was built ($GITHUB_SHA);CHANGELOG.mdsection as release notes, falling back to GitHub's generated notes when there is none;-(e.g.3.0.0-alpha.1) as pre-releases;Notes
Test plan
publish-android.shsyntax validated locally