Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release GH workflow #26

Merged
merged 2 commits into from
Aug 22, 2023
Merged

Add release GH workflow #26

merged 2 commits into from
Aug 22, 2023

Conversation

bobbyiliev
Copy link
Contributor

@bobbyiliev bobbyiliev commented Aug 22, 2023

Adding a release workflow to build a new jar and create a GH release on tag.

We need to create a new GH token and add it as a secret: secrets.RELEASE_TOKEN as the default secrets.GITHUB_TOKENT does not have the repo privileges to create releases.

Totally open to suggestions here!

Closes #23

@benesch
Copy link
Member

benesch commented Aug 22, 2023

I think you should be able to set the workflow's GitHub token to have release write permissions?

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

contents: write looks like it will give the token permissions to create a release.

@bobbyiliev
Copy link
Contributor Author

Ah yes! Good point @benesch! Just updated this accordingly.

@benesch benesch removed their request for review August 22, 2023 15:35
@benesch
Copy link
Member

benesch commented Aug 22, 2023

Sweet! Unrequesting my review since I don't have time to take a look, but let me know if the GitHub token approach doesn't end up working.

@bobbyiliev bobbyiliev merged commit 77b02d1 into master Aug 22, 2023
@bobbyiliev bobbyiliev deleted the release-workflow branch August 22, 2023 16:04
@bobbyiliev
Copy link
Contributor Author

I've tested it with my fork and it seems to work as expected. Thank you for that suggestion Nikhil!

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.

Create a release workflow
3 participants