Skip to content

Commit 03191d0

Browse files
committed
Added IDs to deploy script.
1 parent 894ee69 commit 03191d0

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/maven-publish.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths-ignore:
88
- '**pom.xml'
99

10+
1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
@@ -15,33 +16,39 @@ jobs:
1516
packages: write
1617

1718
steps:
18-
- name: Checkout
19+
- id: checkout
20+
name: Checkout
1921
uses: actions/checkout@v4
2022

21-
- name: Install gpg secret key
23+
- id: gpg-install
24+
name: Install gpg secret key
2225
run: |
2326
# Install gpg secret key
2427
cat <(echo -e "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}") | gpg --batch --import
2528
# Verify gpg secret key
2629
gpg --list-secret-keys --keyid-format LONG
2730
28-
- name: Set SSH key
31+
- id: ssh-setup
32+
name: Set SSH key
2933
uses: webfactory/[email protected]
3034
with:
3135
ssh-private-key: ${{ secrets.TAG_SSH_KEY }}
3236

33-
- name: Set GIT user name and email
37+
- id: git-config
38+
name: Set GIT user name and email
3439
uses: fregante/setup-git-user@v2
3540

36-
- name: Setup JDK
41+
- id: jdk-setup
42+
name: Setup JDK
3743
uses: actions/setup-java@v3
3844
with:
3945
java-version: '17'
4046
distribution: 'temurin'
4147
cache: 'maven'
4248
settings-path: ${{ github.workspace }}
4349

44-
- name: Setup deployment server
50+
- id: server-setup
51+
name: Setup deployment server
4552
4653
with:
4754
servers: |
@@ -53,10 +60,12 @@ jobs:
5360
properties: '[{"distribution.repository.release.id": "ossrh"}, {"distribution.repository.release.url": "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"}]'
5461

5562

56-
- name: Release to production
63+
- id: release
64+
name: Release to production
5765
run: mvn clean release:clean release:prepare release:perform -B -Darguments="-Ddevelop.api.key=${{ secrets.DEVELOP_SERVER_API_KEY }} -Dprod.eu1.api.key=${{ secrets.PROD_EU1_SERVER_API_KEY }} -Dprod.na1.api.key=${{ secrets.PROD_NA1_SERVER_API_KEY }}" -DpreparationGoals=install
5866

59-
- name: Rollback
67+
- id: rollback
68+
name: Rollback
6069
if: failure()
6170
continue-on-error: true
6271
run: mvn clean release:rollback -B && exit 1

0 commit comments

Comments
 (0)