Skip to content

Commit

Permalink
ci(Github actions): use exact versions of the blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
SidMorad committed Nov 7, 2023
1 parent 56ac238 commit ffa3387
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/maven-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
uses: actions/setup-java@v1
with:
java-version: '17'
distribution: 'temurin'
java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: build artifact
run: mvn clean package
- name: Create release
Expand All @@ -27,7 +26,11 @@ jobs:
artifacts: '${{ github.workspace }}/target/*.jar'
token: ${{ secrets.GH_TOKEN }}
- name: Publish to the Maven Central Repository
run: mvn --batch-mode deploy
run: |
mvn \
--no-transfer-progress \
--batch-mode \
deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit ffa3387

Please sign in to comment.