Skip to content

Commit 2da78e0

Browse files
authored
Update release-maven-image.yml
1 parent 8327401 commit 2da78e0

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed
Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: release-maven-image
1+
name: Release Maven
22

33
on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
77
description: "Version to use when preparing a release (e.g., 1.2.3)"
88
required: true
9-
default: "0.0.1"
9+
default: 0.0.1
1010
developmentVersion:
1111
description: "Version to use for new local working copy (e.g., 1.2.4-SNAPSHOT)"
1212
required: true
13-
default: "0.0.2-SNAPSHOT"
13+
default: 0.0.2-SNAPSHOT
1414
app-path:
1515
type: choice
1616
description: Service-Name
1717
required: true
1818
options:
19-
- sps-backend
19+
- refarch-backend
2020
- refarch-eai
2121

2222
jobs:
@@ -29,12 +29,11 @@ jobs:
2929
TZ: Europe/Berlin # timezone
3030
steps:
3131
- id: maven-release-step
32-
uses: it-at-m/.github/.github/actions/action-maven-release@feat/release-add-pr-option
32+
uses: it-at-m/lhm_actions/action-templates/actions/action-maven-release@a4dd26733adc7d71b10fbd744ef355c01e4b7040 # v1.0.8
3333
with:
34-
java-version: 17
35-
app-path: "/${{ github.event.inputs.app-path }}"
36-
releaseVersion: "${{ github.event.inputs.releaseVersion }}"
37-
developmentVersion: "${{ github.event.inputs.developmentVersion }}"
34+
app-path: /${{ github.event.inputs.app-path }}
35+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
36+
developmentVersion: ${{ github.event.inputs.developmentVersion }}
3837
SIGN_KEY_PASS: ${{ secrets.gpg_passphrase }}
3938
CENTRAL_USERNAME: ${{ secrets.sonatype_username }}
4039
CENTRAL_PASSWORD: ${{ secrets.sonatype_password }}
@@ -44,10 +43,10 @@ jobs:
4443
runs-on: ubuntu-latest
4544
needs: release-maven
4645
steps:
47-
- uses: it-at-m/.github/.github/actions/action-build-image@main
46+
- uses: it-at-m/lhm_actions/action-templates/actions/action-build-image@a4dd26733adc7d71b10fbd744ef355c01e4b7040 # v1.0.8
4847
with:
49-
path: "${{ github.event.inputs.app-path }}"
50-
image-name: "${{ github.event.inputs.app-path }}"
48+
path: ${{ github.event.inputs.app-path }}
49+
image-name: ${{ github.event.inputs.app-path }}
5150
registry-password: ${{ secrets.GITHUB_TOKEN }}
5251
artifact-name: ${{ needs.release-maven.outputs.ARTIFACT_NAME }}
5352
registry-username: ${{ github.actor }}
@@ -59,16 +58,8 @@ jobs:
5958
runs-on: ubuntu-latest
6059
steps:
6160
- name: Download a single artifact
62-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
61+
uses: it-at-m/lhm_actions/action-templates/actions/action-create-github-release@a4dd26733adc7d71b10fbd744ef355c01e4b7040 # v1.0.8
6362
with:
64-
name: ${{ needs.release-maven.outputs.ARTIFACT_NAME }}
65-
- name: Create GitHub Release
66-
id: create_release
67-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
68-
with:
69-
tag_name: ${{needs.release-maven.outputs.MVN_ARTIFACT_ID}}-${{ github.event.inputs.releaseVersion }}
70-
draft: false
71-
prerelease: false
72-
generate_release_notes: false
73-
files: |
74-
${{ github.event.inputs.app-path }}/target/*.jar
63+
artifact-name: ${{ needs.release-maven.outputs.ARTIFACT_NAME }}
64+
tag-name: ${{ needs.release-maven.outputs.MVN_ARTIFACT_ID }}-${{ github.event.inputs.releaseVersion }}
65+
artifact-path: ${{ github.event.inputs.app-path }}/target/*.jar

0 commit comments

Comments
 (0)