Skip to content

Commit 6273f7b

Browse files
author
eschleb
committed
initial commit (WIP)
0 parents  commit 6273f7b

27 files changed

+1952
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: release and deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout source code
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: '0'
19+
# Setup Java environment
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 17
24+
# Install xmllint
25+
- name: Install dependencies
26+
run: sudo apt-get update && sudo apt-get install libxml2-utils
27+
# Set git user name and email
28+
- name: Set up Git
29+
run: |
30+
chmod +x ci/setup-git.sh
31+
ci/setup-git.sh
32+
# Release, set correct versions and create tag
33+
- name: Release (versioning/tag)
34+
run: |
35+
chmod +x ci/mvn-release.sh
36+
ci/mvn-release.sh
37+
38+
deploy-release:
39+
40+
needs: release
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
# Checkout source code
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
with:
48+
ref: 'main'
49+
# Setup Java environment
50+
- name: Set up JDK 17
51+
uses: actions/setup-java@v4
52+
with:
53+
distribution: temurin
54+
java-version: 17
55+
server-id: central
56+
server-username: MAVEN_USERNAME
57+
server-password: MAVEN_PASSWORD
58+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
59+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
60+
# Run maven verify
61+
- name: Maven verify
62+
run: mvn verify --batch-mode
63+
# Publish
64+
- name: Release Maven package (SNAPSHOT)
65+
run: mvn deploy -Pdeploy
66+
env:
67+
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }}
68+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
69+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

.github/workflows/verify.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: verify
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
verify:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout source code
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
# Setup Java environment
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: 17
23+
# Run maven verify
24+
- name: Maven verify
25+
run: mvn verify --batch-mode

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OS
2+
.DS_Store
3+
Thumbs.db
4+
5+
target
6+
7+
.idea
8+
*.iml
9+
10+
#JRebel
11+
rebel.xml
12+
codesigning.asc

0 commit comments

Comments
 (0)