Skip to content

Commit

Permalink
Merge pull request #7 from Iterable/update-release-to-only-trigger-on…
Browse files Browse the repository at this point in the history
…-tag

Update release to only run on tags.
  • Loading branch information
douglasthomsen authored Aug 14, 2024
2 parents 4264299 + 35d6917 commit eac4a50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release
on:
push:
branches: [main]
tags: ["*"]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-20.04
Expand Down
15 changes: 9 additions & 6 deletions RELEASING.md
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.

0 comments on commit eac4a50

Please sign in to comment.