Skip to content

Commit

Permalink
ci: fix mvn deploy gpg signing
Browse files Browse the repository at this point in the history
as title
  • Loading branch information
wey-gu authored Nov 15, 2023
1 parent a9a7826 commit fdd2e89
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 fdd2e89

Please sign in to comment.