Skip to content

Commit

Permalink
Merge pull request #277 from CorvusYe/master
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu authored Dec 13, 2023
2 parents 2a994d1 + 9c7ed71 commit 0081ef8
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v3
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: '8'
distribution: 'temurin'
java-version: 1.8

- name: Install nebula-graph
run: |
Expand All @@ -32,20 +31,10 @@ jobs:
popd
popd
- name: Set up Apache Maven Central
uses: actions/setup-java@v3
- name: Deploy Snapshot to Maven package
uses: samuelmeuli/action-maven-publish@v1
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

- name: Publish package
run: mvn --batch-mode -e deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USER }}
nexus_password: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit 0081ef8

Please sign in to comment.