Skip to content

Commit 83fc3e6

Browse files
author
Marvin Zhang
committed
chore: Update GitHub Actions workflow to improve version retrieval and streamline GPG key management
- Changed the output variable name from 'name' to 'version' for clarity in the version retrieval step. - Removed the GPG key import step to simplify the workflow and enhance deployment efficiency. - These changes contribute to a more maintainable and clear GitHub Actions configuration for future releases.
1 parent 55f9406 commit 83fc3e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/publish.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
distribution: 'temurin'
2525
- name: Get version
2626
id: get_version
27-
run: echo "name=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
27+
run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
2828
- name: Pad run number
2929
id: pad_run_number
3030
run: echo "padded_run_number=$(printf '%04d' ${{ github.run_number }})" > $GITHUB_OUTPUT
@@ -52,8 +52,6 @@ jobs:
5252
server-password: MAVEN_PASSWORD
5353
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
5454
gpg-passphrase: MAVEN_GPG_PASSPHRASE
55-
- name: Import GPG key
56-
run: echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch
5755
- name: Set version
5856
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
5957
- name: Publish package

0 commit comments

Comments
 (0)