Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
<username>${env.OSSH_USERNAME}</username>
<password>${env.OSSH_PASSWORD}</password>
</server>
<server>
<id>gpg.passphrase</id>
Expand Down
8 changes: 4 additions & 4 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name-template: 'Version $NEXT_PATCH_VERSION🌈'
name-template: 'Version $NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀Features'
- title: 'Features'
labels:
- 'feature'
- 'enhancement'
Expand All @@ -10,9 +10,9 @@ categories:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰Maintenance'
- title: 'Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-template: '- $TITLE (#$NUMBER)'
exclude-labels:
- 'skip-changelog'
template: |
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/version-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Release

on:
push:
tags:
- '*'
release:
types: [published]

jobs:
build:
Expand All @@ -19,10 +18,6 @@ jobs:
realversion="${realversion//v/}"
echo "::set-output name=VERSION::$realversion"

- name: set version from tag
uses: actions/setup-java@v2
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}

- name: Set up publishing to maven central
uses: actions/setup-java@v2
with:
Expand All @@ -32,17 +27,20 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: mvn versions
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}

- name: Install gpg key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG

- name: Publish
run: |
mvn --no-transfer-progress \
--batch-mode \
-Dgpg.passphrase="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" \
-s -DskipTests deploy -P release
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
-DskipTests deploy -P release
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}