8000 Fix release flow · Labs64/NetLicensingClient-java@bd5e210 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit bd5e210

Browse files
committed
Fix release flow
1 parent 796b3e8 commit bd5e210

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/netlicensing-client-release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ on:
1111

1212
jobs:
1313
release:
14-
name: Release ${{ github.event.inputs.release-version }}
14+
name: Release ${{ github.event.inputs.release-version }} / Java ${{ matrix.java-version }}
1515
runs-on: self-hosted
16-
container: maven:3-amazoncorretto-17
16+
env:
17+
RELEASE_WORK_DIR: checkout-for-release
18+
container: maven:3-amazoncorretto-17-al2023
1719
strategy:
20+
fail-fast: false
1821
matrix:
1922
java-version: [11, 17]
2023
include:
@@ -24,13 +27,20 @@ jobs:
2427
jdk-suffix: -jdk17
2528

2629
steps:
27-
- uses: actions/checkout@v3
30+
# Specific to maven:3-amazoncorretto-17-al2023 image
31+
- name: Install required tooling
32+
run: yum install -y --allowerasing git gnupg2
33+
34+
- name: Checkout the sources
35+
uses: actions/checkout@v4
2836
with:
37+
path: ${{ env.RELEASE_WORK_DIR }}
2938
ssh-key: '${{ secrets.REPO_SSH_KEY }}'
3039

3140
# Relies on actions/checkout with 'ssh-key' parameter.
3241
- name: Prepare git config
3342
run: |
43+
cd $RELEASE_WORK_DIR
3444
git config user.name "GitHub Actions Bot"
3545
git config user.email "netlicensing@labs64.com"
3646
@@ -61,12 +71,13 @@ jobs:
6171
6272
- name: Release to Maven Central staging
6373
run: |
74+
cd $RELEASE_WORK_DIR
6475
mvn -s ~/.m2/settings.xml -B \
6576
clean deploy scm:tag \
6677
-P release \
6778
-Drevision=${{ github.event.inputs.release-version }} \
6879
-Dsha1=$BRANCH_SUFFIX \
6980
-Dchangelist= \
70-
-Djava.version=${{ matrix.java-version }}
81+
-Djava.version=${{ matrix.java-version }} \
7182
-Dmessage="Release ${{ github.event.inputs.release-version }}" \
7283
-Dgpg.passphrase=${{ secrets.GPG_KEY_PASS }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<maven-site-plugin.version>3.11.0</maven-site-plugin.version>
9898
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
9999
<maven-dependency-plugin.version>3.3.0</maven-dependency-plugin.version>
100-
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
100+
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
101101
<!-- TODO(AY): change version when the new release comes. Java 11 Warning https://github.com/highsource/maven-jaxb2-plugin/issues/148 -->
102102
<maven-jaxb2-plugin.version>0.14.0</maven-jaxb2-plugin.version>
103103
<jaxb.version>2.3.1</jaxb.version>

0 commit comments

Comments
 (0)
0