Skip to content

Commit

Permalink
add OSSRH_GPG_SECRET_KEY (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Dec 23, 2023
1 parent 9f50f03 commit 10da9ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/maven_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
with:
ref: 'main'
fetch-depth: 0

- name: Install gpg secret key
run: |
echo -n ${{ secrets.OSSRH_GPG_SECRET_KEY }} | base64 --decode | gpg --import
- name: Setup Java
uses: actions/setup-java@v1
with:
Expand All @@ -26,7 +28,11 @@ jobs:
server-password: MAVEN_CENTRAL_TOKEN

- name: Deploy to Maven Central
run: mvn deploy
run: |
cat ~/.m2/settings.xml
echo $MAVEN_USERNAME
echo $MAVEN_CENTRAL_TOKEN
mvn clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit 10da9ff

Please sign in to comment.