github: add actions (#66)
This commit is contained in:
parent
1eeaffe017
commit
c9763e6f64
7 changed files with 308 additions and 0 deletions
41
.github/README.org
vendored
Normal file
41
.github/README.org
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
* Deploying using Github Actions
|
||||
|
||||
** Actions definition: workflow/sonatype-deploy.yml
|
||||
|
||||
When a GitHub Release is created, usually from a tag, this action will trigger.
|
||||
|
||||
Using JDK8 the software will be packaged, including running any tests.
|
||||
|
||||
Then the Deploy script will sign the created artifacts then deploy them according to the distributionManagement configuration in the `pom.xml`.
|
||||
|
||||
** Deploy Script
|
||||
|
||||
Uses a signing key provided from the GitHub Actions Secrets as an environment variable to sign the artifact(s) before they are then deployed.
|
||||
|
||||
*** Inputs
|
||||
|
||||
**** DEPLOY_PROJECTS (optional)
|
||||
|
||||
An optional list of modules in a multi-module project to be deployed. If this value is not specified, then all projects will be deployed.
|
||||
|
||||
** Maven Configuration
|
||||
|
||||
Picks up the credentials from Environment variables for authenticating both with GPG and with the target deployment server (e.g. sonatype-nexus).
|
||||
|
||||
*** Inputs
|
||||
|
||||
**** NEXUS_USERNAME
|
||||
|
||||
The username for your account on the deployment server.
|
||||
|
||||
**** NEXUS_PASSWORD
|
||||
|
||||
The password for your account on the deployement server.
|
||||
|
||||
**** GPG_KEYNAME
|
||||
|
||||
The key to use when signing.
|
||||
|
||||
**** GPG_PASSPHRASE
|
||||
|
||||
The passphrase to unlock the key to use when signing.
|
147
.github/codesigning.asc
vendored
Normal file
147
.github/codesigning.asc
vendored
Normal file
|
@ -0,0 +1,147 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQENBEuWK3wBCACfse9XMgqAj0+hykRjBen3cmwKqVyiKDljAxSqs/QsBVT+f7T3
|
||||
d8y8yKQ/u6ymyqoznt7uTx4SqWEOBnwq7KA9WcSONSYgRQ6vX97vFStwIQIYwTfw
|
||||
o1grnAvvAYEGxIoJ6BwFGR0z9RPX1r3mtUXWUIb+p+kjjbM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PPiDacJnKdzYQ2
|
||||
mlQL6HzducVWCCSGHKI37yS8LY+CI6xLDaeBNmdqDcRTQL2ckOlB4IoeXCUkweR3
|
||||
zvvo7gi4te3XdlLZec+awfTb4t7zgijNpm9jJSDrVYDXMWd1VFuzmmcz4TOYVqtS
|
||||
vS2zWNN7ZDDKEYhwPCf46zkK3yLBw9rXKLDMKVPMCOl5gajqrGaxZ/7FC/0buUXN
|
||||
C7HjLvdYgOSWe/YwGQXV8PMe3jdz88voyTSgKvj9Z7YBB/0Ybbdab99ua84fCsTw
|
||||
t1L4Et3eVyh4Tqolo0tMI4o91NFMgOCC85BsXyzRjkwWNpLY4O9U0o+AQ0WOYAac
|
||||
Zv3024cZgjVLKqXMUwvVwHzz6UCBTq5fDP9Jdl3Wovph6ltdXKV/ImLjDXxju/D/
|
||||
Pud3vFnBXQ9g2ItXlLt8RsrZSNDV7C9pn1eLOFixb/MABllPldHjBEo+/h4qaioU
|
||||
s7DG2i+5V2hJHrKeTUM4l+SJUN2KOK3TqWcc+cFKOEcmxaRTnuqKpzPjjrskjg3y
|
||||
O2aakj1o7aHb9ulSSkGllVAgm/nngI/b77AlNNVMM2J6x/MVphxa6ueC5IuLjPWa
|
||||
4gzg
|
||||
=F17r
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
lQEVBEuWK3wBCACfse9XMgqAj0+hykRjBen3cmwKqVyiKDljAxSqs/QsBVT+f7T3
|
||||
d8y8yKQ/u6ymyqoznt7uTx4SqWEOBnwq7KA9WcSONSYgRQ6vX97vFStwIQIYwTfw
|
||||
o1grnAvvAYEGxIoJ6BwFGR0z9RPX1r3mtUXWUIb+p+kjjbMbbqAWvjYUMEO79Lro
|
||||
td2OviT249Cns27NfrRDLxBPx06NSnW9/A6TyAW3lzfNtOp+TiLWUpJnUWuYp0vR
|
||||
N70ekugwEa7Va1vBKqF413CUOptufW+ta/cetWbmUw8nms5CMHME+eYkCk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v/
|
||||
dZW5QCqXHojfx3YsSe05siVkpGqgYmj44MTMqP4dI38Lz1vPAD9asVD5vnyD+F1V
|
||||
HiQihteMaxwPdp+EfDl7xKchbLCE7NKCeUcS4bwtIqmNhUrITUbk8UfO8yYtX7k3
|
||||
EyGGEW2zHQMX3uFImPuESbOv3QCfu3pOfdu65bb+3TujBRQ8/Dn/eAqHW8ZIhfAE
|
||||
MG+84p29mFPl4qJH9BxG4RL5BBlHHebJcza9YkkPBN/uPyzs3RUU/r/nCcVKtKeh
|
||||
uwLyuBFIw8+INpwmcp3NhDaaVAvofN25xVYIJIYcojfvJLwtj4IjrEsNp4E2Z2oN
|
||||
xFNAvZyQ6UHgih5cJSTB5HfO++juCLi17dd2Utl5z5rB9Nvi3vOCKM2mb2MlIOtV
|
||||
gNcxZ3VUW7OaZzPhM5hWq1K9LbNY03tkMMoRiHA8J/jrOQrfIsHD2tcosMwpU8wI
|
||||
6XmBqOqsZrFn/sUL/Ru5Rc0LseMu91iA5JZ79jAZBdXw8x7eN3Pzy+jJNKAq+P1n
|
||||
tgEH/Rhtt1pv325rzh8KxPC3UvgS3d5XKHhOqiWjS0wjij3U0UyA4ILzkGxfLNGO
|
||||
TBY2ktjg71TSj4BDRY5gBpxm/fTbhxmCNUsqpcxTC9XAfPPpQIFOrl8M/0l2Xdai
|
||||
+mHqW11cpX8iYuMNfGO78P8+53e8WcFdD2DYi1eUu3xGytlI0NXsL2mfV4s4WLFv
|
||||
8wAGWU+V0eMESj7+HipqKhSzsMbaL7lXaEkesp5NQziX5IlQ3Yo4rdOpZxz5wUo4
|
||||
RybFpFOe6oqnM+OOuySODfI7ZpqSPWjtodv26VJKQaWVUCCb+eeAj9vvsCU01Uwz
|
||||
YnrH8xWmHFrq54Lki4uM9ZriDOA=
|
||||
=LsWH
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
BIN
.github/codesigning.asc.gpg
vendored
Normal file
BIN
.github/codesigning.asc.gpg
vendored
Normal file
Binary file not shown.
43
.github/deploy.sh
vendored
Normal file
43
.github/deploy.sh
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Decrypts the signing key in .github/codesigning.asc.enc
|
||||
# Imports that key
|
||||
# Uses .github/settings.xml and the release profile to deploy
|
||||
|
||||
echo "deploy.sh: Starting..."
|
||||
|
||||
(
|
||||
cd .github
|
||||
|
||||
echo "Retrieving GPG Private KEY"
|
||||
gpg --quiet \
|
||||
--batch \
|
||||
--yes \
|
||||
--decrypt \
|
||||
--passphrase="${GPG_PASSPHRASE}" \
|
||||
--output codesigning.asc \
|
||||
codesigning.asc.gpg
|
||||
|
||||
echo "Loading signing key"
|
||||
gpg --batch \
|
||||
--fast-import codesigning.asc
|
||||
)
|
||||
|
||||
if test -z ${DEPLOY_PROJECTS}
|
||||
then
|
||||
PROJECTS=""
|
||||
echo "Deploying Projects: all"
|
||||
else
|
||||
PROJECTS="-pl ${DEPLOY_PROJECTS}"
|
||||
echo "Deploying Projects: $DEPLOY_PROJECTS"
|
||||
fi
|
||||
|
||||
echo "Releasing..."
|
||||
mvn ${PROJECTS} \
|
||||
--settings .github/settings.xml \
|
||||
-Dskip-Tests=true \
|
||||
-P release \
|
||||
-B \
|
||||
deploy
|
||||
|
||||
echo "deploy.sh: Done."
|
28
.github/settings.xml
vendored
Normal file
28
.github/settings.xml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
|
||||
<servers>
|
||||
<server>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<username>${env.NEXUS_USERNAME}</username>
|
||||
<password>${env.NEXUS_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>sonatype-nexus-staging</id>
|
||||
<username>${env.NEXUS_USERNAME}</username>
|
||||
<password>${env.NEXUS_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>gpg-sign</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<gpg.executable>gpg</gpg.executable>
|
||||
<gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
|
||||
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
25
.github/workflows/maven-build.yml
vendored
Normal file
25
.github/workflows/maven-build.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ 8, 11 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: setup-jdk-${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: install
|
||||
run: mvn -B install
|
24
.github/workflows/sonatype-deploy.yml
vendored
Normal file
24
.github/workflows/sonatype-deploy.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Deploy to Sonatype Nexus
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Build with Maven
|
||||
run: mvn -B package
|
||||
- name: Nexus Repo Publish
|
||||
run: sh .github/deploy.sh
|
||||
env:
|
||||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
|
||||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
||||
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
Loading…
Reference in a new issue