Skip to content

Commit

Permalink
test: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-from-contentstack committed May 15, 2024
1 parent 18391e4 commit f4e7794
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/maven--package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ jobs:
contents: read
packages: write
steps:
- id: install-secret-key
name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
Expand All @@ -27,6 +20,7 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Publish to Maven Central Repository
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
Expand Down

0 comments on commit f4e7794

Please sign in to comment.