Skip to content

Commit

Permalink
Issue #217: Do not sign SNAPSHOTs (we were not anyway due to activati…
Browse files Browse the repository at this point in the history
…on being on release not deploy)
  • Loading branch information
ALRubinger committed Mar 9, 2024
1 parent 1b916e1 commit 5972acd
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
# Adapted from: https://gist.github.com/sualeh/ae78dc16123899d7942bc38baba5203c
- name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
# This will publish to TBD Artifactory. Does not release to Maven Central.
# Skips testing as this workflow is triggered after CI where tests have already run
- name: Publish SNAPSHOT to TBD Artifactory
run: |
if [ -n "${{ github.event.inputs.version }}" ]; then
Expand All @@ -45,15 +38,13 @@ jobs:
-DskipTests=true \
--batch-mode \
--settings .maven_settings.xml \
-Dversion=${{ github.event.inputs.version }} \
-Dgpg.passphrase=${{ secrets.GPG_SECRET_PASSPHRASE }}
-Dversion=${{ github.event.inputs.version }}
else
mvn \
deploy \
-DskipTests=true \
--batch-mode \
--settings .maven_settings.xml \
-Dgpg.passphrase=${{ secrets.GPG_SECRET_PASSPHRASE }}
--settings .maven_settings.xml
fi
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
Expand Down

0 comments on commit 5972acd

Please sign in to comment.