Update github actions (#502)
This commit is contained in:
parent
6c8b056ed9
commit
9af29a2c3f
3 changed files with 42 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
||||||
# This workflow will build a Java project with Maven
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
||||||
|
|
||||||
name: maven-build
|
name: maven-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -14,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java: [ 8 ]
|
java: [ 8, 11, 14 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: kamiazya/setup-graphviz@v1
|
- uses: kamiazya/setup-graphviz@v1
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
40
.github/workflows/deploy-sonatype.yml
vendored
Normal file
40
.github/workflows/deploy-sonatype.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: sonatype-deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: kamiazya/setup-graphviz@v1
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 8
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B install
|
||||||
|
- name: Nexus Repo Publish
|
||||||
|
run: |
|
||||||
|
gpg --quiet \
|
||||||
|
--batch \
|
||||||
|
--yes \
|
||||||
|
--decrypt \
|
||||||
|
--passphrase="${{ secrets.GPG_PASSPHRASE }}" \
|
||||||
|
--output codesigning.asc \
|
||||||
|
.github/codesigning.asc.gpg
|
||||||
|
gpg --batch \
|
||||||
|
--fast-import codesigning.asc
|
||||||
|
mvn --settings .github/settings.xml \
|
||||||
|
-Dskip-Tests=true \
|
||||||
|
-P release \
|
||||||
|
-B \
|
||||||
|
deploy
|
||||||
|
env:
|
||||||
|
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
|
||||||
|
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
|
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
|
||||||
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
@ -1,4 +1,4 @@
|
||||||
name: Update draft release on push to master
|
name: draft-release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
Loading…
Reference in a new issue