Skip to content

Commit

Permalink
Merge pull request #258 from nebula-contrib/wey-gu-gpg-ci-fix
Browse files Browse the repository at this point in the history
ci: fix mvn deploy gpg signing
  • Loading branch information
Nicole00 authored Nov 15, 2023
2 parents a9a7826 + fdd2e89 commit 14c6018
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'

- name: Install nebula-graph
run: |
mkdir tmp
Expand All @@ -30,16 +24,16 @@ jobs:
popd
popd
- name: Set up Apache Maven Central
- name: Setup Java and Apache Maven Central
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
gpg-private-key: ${{ secrets.GPG_SECRET }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET }} # Import GPG key
gpg-passphrase: ${{ secrets.GPG_PASSWORD }} # GPG passphrase
server-id: ossrh # Server ID for Maven Central
server-username: MAVEN_USERNAME # Environment variable for Maven username
server-password: MAVEN_PASSWORD # Environment variable for Maven password

- name: Publish package
run: mvn --batch-mode deploy
Expand Down

0 comments on commit 14c6018

Please sign in to comment.