-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Artem Eroshenko
authored
Jan 26, 2022
1 parent
18b2899
commit f306797
Showing
4 changed files
with
37 additions
and
13 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
|
||
jobs: | ||
build: | ||
name: "Build JDK 1.8" | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
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,4 +1,4 @@ | ||
name: Publish | ||
name: Publish Release | ||
|
||
on: | ||
release: | ||
|
@@ -16,26 +16,26 @@ jobs: | |
distribution: 'zulu' | ||
java-version: 8.0.x | ||
|
||
- name: Set up GPG | ||
run: echo -n "${GPG_PRIVATE_KEY}" | base64 --decode > ${GITHUB_WORKSPACE}/${GPG_KEY_ID}.gpg | ||
env: | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
|
||
- name: Set up Maven | ||
uses: s4u/[email protected] | ||
with: | ||
servers: '[{"id": "ossrh", "username": "${{secrets.OSSRH_USERNAME}}", "password": "${{secrets.OSSRH_PASSWORD}}"}]' | ||
|
||
- name: Set up GPG | ||
run: | | ||
export GPG_TTY=$(tty) | ||
echo -n "${GPG_PRIVATE_KEY}" | base64 --decode | gpg --batch --import | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
|
||
- name: "Maven Build" | ||
run: ./mvnw -Dinvoker.skip=true install | ||
|
||
- name: "Maven Publish" | ||
run: | | ||
./mvnw -Dinvoker.skip=true deploy \ | ||
-Dsigning.keyId=${GPG_KEY_ID} \ | ||
-Dsigning.password=${GPG_PASSPHRASE} \ | ||
-Dsigning.secretKeyRingFile=${GITHUB_WORKSPACE}/${GPG_KEY_ID}.gpg | ||
./mvnw -Dinvoker.skip=true -Pgpg deploy \ | ||
-Dgpg.keyname=${GPG_KEY_ID} \ | ||
-Dgpg.passphrase=${GPG_PASSPHRASE} \ | ||
env: | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
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,4 +1,4 @@ | ||
name: Release | ||
name: Perform Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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