Skip to content

feature: release of v1 and v2 #701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 24, 2021
Merged
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
26 changes: 18 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
with:
ref: "v1"
- uses: actions/checkout@v2
if: ${{ startsWith(github.event.release.tag_name, 'v2.') }}
- name: Set up Java and Maven
uses: actions/setup-java@v2
with:
Expand All @@ -20,20 +25,25 @@ jobs:
run: ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
maven_profiles: "release"
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
nexus_password: ${{ secrets.OSSRH_TOKEN }}
# - name: Release Maven package
# uses: samuelmeuli/action-maven-publish@v1
# with:
# maven_profiles: "release"
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
# nexus_username: ${{ secrets.OSSRH_USERNAME }}
# nexus_password: ${{ secrets.OSSRH_TOKEN }}

# This is separate job because there were issues with git after release step, was not able to commit changes. See history.
update-working-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
with:
ref: "v1"
- uses: actions/checkout@v2
if: ${{ startsWith(github.event.release.tag_name, 'v2.') }}
- name: Set up Java and Maven
uses: actions/setup-java@v2
with:
Expand Down