Skip to content

Commit

Permalink
Fix release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kkorotkov committed Dec 18, 2023
1 parent 796b3e8 commit d011cd6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/netlicensing-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:

jobs:
release:
name: Release ${{ github.event.inputs.release-version }}
name: Release ${{ github.event.inputs.release-version }} / Java ${{ matrix.java-version }}
runs-on: self-hosted
container: maven:3-amazoncorretto-17
container: maven:3-amazoncorretto-17-al2023
strategy:
matrix:
java-version: [11, 17]
Expand All @@ -24,13 +24,20 @@ jobs:
jdk-suffix: -jdk17

steps:
- uses: actions/checkout@v3
# Specific to the maven:3-amazoncorretto-17-al2023 image
- name: Install required tooling
run: yum install -y git

- name: Checkout the sources
uses: actions/checkout@v4
with:
path: 'nlic-client-release'
ssh-key: '${{ secrets.REPO_SSH_KEY }}'

# Relies on actions/checkout with 'ssh-key' parameter.
- name: Prepare git config
run: |
cd nlic-client-release
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
Expand Down Expand Up @@ -61,6 +68,7 @@ jobs:
- name: Release to Maven Central staging
run: |
cd nlic-client-release
mvn -s ~/.m2/settings.xml -B \
clean deploy scm:tag \
-P release \
Expand Down

0 comments on commit d011cd6

Please sign in to comment.