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.
Motivation:
Add a release workflow so that it's easy to deploy artifacts to maven central repository.
Modification:
Result:
Fixes #327
Sample workflow: https://github.com/nobodyiam/sofa-registry/actions/workflows/release.yml
![image](https://private-user-images.githubusercontent.com/837658/251145536-14552fcd-6b67-4d9b-8436-f2d65f3bfc2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjMzMjgsIm5iZiI6MTczOTY2MzAyOCwicGF0aCI6Ii84Mzc2NTgvMjUxMTQ1NTM2LTE0NTUyZmNkLTZiNjctNGQ5Yi04NDM2LWYyZDY1ZjNiZmMyYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQyMzQzNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MzExYjgwMDBhYWU2OGNjOWY0OGVjNjE0MDIyOTI3OWU4NWE0MWYyOTA0MmVhYzIzODE0MTIwYTQyN2JjNzE1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vUZA3z8P42fyQ_8SQ0nnBh8uYkIuq_5h_UCLpMyBaAI)
And the uploaded artifacts could be found in the staging repo:
![image](https://private-user-images.githubusercontent.com/837658/251145057-071741b6-9e43-4cfc-92e7-a53e04a52cc0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjMzMjgsIm5iZiI6MTczOTY2MzAyOCwicGF0aCI6Ii84Mzc2NTgvMjUxMTQ1MDU3LTA3MTc0MWI2LTllNDMtNGNmYy05MmU3LWE1M2UwNGE1MmNjMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQyMzQzNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYWY0Y2JkYTBlYzM4ZjcyNDkyYWExNzQ5MWU4NDFkNDhkM2UwYjQ2MjdjNDg2M2FjMzFhNzEzNGQ5MjMwYjgzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.SlodTHJSNAnpfikxGz0FNupNjolxFxA9ufSvZJPg6JE)