forked from bbstilson/sbt-codeartifact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Iterable/update-release-to-only-trigger-on…
…-tag Update release to only run on tags.
- Loading branch information
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Releasing | ||
|
||
Releases are handled by [`sbt-ci-release`](https://github.com/olafurpg/sbt-ci-release) and [Github Actions](../.github/workflows/release.yml). Random versions are automatically deployed when changes are merged to main. To create a new semvar'ed version, do the following: | ||
Releases are handled by [`sbt-ci-release`](https://github.com/olafurpg/sbt-ci-release) and [Github Actions](../.github/workflows/release.yml). To release a new version do the following: | ||
|
||
```bash | ||
git tag -a v0.1.0 | ||
# add notes about what changed | ||
git push origin v0.1.0 | ||
``` | ||
1. Go [here](https://github.com/Iterable/sbt-codeartifact/releases/new) | ||
2. In the `Choose a tag` dropdown, create a new tag with the following format `v[0-9]+.[0-9]+.[0-9]`. For example `v0.0.1` is a valid release number but `0.0.1` and `0.1` are not. | ||
3. Make sure the `Target` branch is set correctly. | ||
4. Select the correct `Previous tag`. | ||
5. Click the `Generate release notes` button. | ||
6. Click the `Publish release` button. | ||
|
||
Once this is done it will trigger a github action that will publish this version to maven central. |