-
Notifications
You must be signed in to change notification settings - Fork 7
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 #26 from vania-pooh/master
Switch back to explicitly specifying release version and automated ta…
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "Release version" | ||
required: true | ||
default: "X.Y.Z" | ||
|
||
jobs: | ||
lightning-java: | ||
|
@@ -22,9 +26,6 @@ jobs: | |
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSWORD | ||
|
||
- name: Prepare release version | ||
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
|
||
- name: Deploy release | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
|
@@ -33,9 +34,11 @@ jobs: | |
run: | | ||
git config user.name $GITHUB_REPOSITORY | ||
git config user.email "[email protected]" | ||
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION | ||
git commit -am "Updated version to $RELEASE_VERSION" | ||
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ github.event.inputs.releaseVersion }} | ||
git commit -am "Updated version to ${{ github.event.inputs.releaseVersion }}" | ||
git push origin master | ||
git tag ${{ github.event.inputs.releaseVersion }} | ||
git push origin ${{ github.event.inputs.releaseVersion }} | ||
mvn clean deploy -P release | ||
mvn versions:set -DgenerateBackupPoms=false -DnextSnapshot=true | ||
git commit -am "Updated version to next snapshot" | ||
|