Skip to content

Commit

Permalink
- Added sonatype snapshot deployment to main workflow for main branch…
Browse files Browse the repository at this point in the history
… commits (postgis#98)
  • Loading branch information
phillipross authored May 26, 2021
1 parent f280b54 commit 36ac392
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
os: [ubuntu-20.04]
java_version: [8]
maven_version: [3.8.1]
include:
- os: ubuntu-20.04
java_version: 8
maven_version: 3.8.1
maven_deploy: true
name: Build on OS ${{ matrix.os }} with Maven ${{ matrix.maven_version }} using Zulu ${{ matrix.java_version }}
runs-on: ${{ matrix.os }}
env:
Expand Down Expand Up @@ -59,3 +64,10 @@ jobs:

- name: Maven build/test
run: mvn -U -V -s ${{ env.SETTINGS }} -P${{ env.PROFILES }} ${{ env.MAVEN_PROPS }} clean install

- name: Maven deploy
if: ${{ matrix.maven_deploy && (github.ref == 'refs/heads/main') && (github.event_name != 'pull_request') }}
env:
OSSRHU: ${{ secrets.OSSRHU }}
OSSRHT: ${{ secrets.OSSRHT }}
run: mvn -U -V -s ${{ env.SETTINGS }} -P${{ env.PROFILES }} ${{ env.MAVEN_PROPS }} deploy

0 comments on commit 36ac392

Please sign in to comment.