Skip to content

Commit b24b1a9

Browse files
committed
Add github-release to workflow
1 parent 2143a76 commit b24b1a9

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ jobs:
1010
- name: Check out Git repository
1111
uses: actions/checkout@v2
1212

13+
- name: Release GitHub sources
14+
uses: actions/create-release@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
tag_name: ${{ github.ref }}
19+
release_name: ${{ github.ref }}
20+
body: ${{ github.event.head_commit.message }}
21+
draft: false
22+
prerelease: false
23+
1324
- name: Install Java and Maven
1425
uses: actions/setup-java@v1
1526
with:

RELEASE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Steps to release a new version
2+
3+
1. Decide whether to do a patch, minor or major release
4+
2. Adjust the version in the [pom.xml](pom.xml)
5+
3. Adjust the version in the [README.md](README.md)
6+
4. Commit the changes _(the commit message will be the release notes, so make sure to include anything important; markdown is supported)_
7+
5. Create a tag with the pom-version: `git tag 1.2.3`
8+
6. Push your commit together with the tag

0 commit comments

Comments
 (0)