Skip to content

Commit

Permalink
HPCC4J-505 Github Action publish snapshots (hpcc-systems#605)
Browse files Browse the repository at this point in the history
- Creates action to publish snapshots

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana authored Mar 27, 2023
1 parent 016b33d commit 74bd4d3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-snapshots-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish snapshot package to the Maven Central Repository
on:
push:
branches:
- 'master'
- 'candidate-*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USER_NAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }}

0 comments on commit 74bd4d3

Please sign in to comment.