Skip to content

Commit

Permalink
Deploy snapshot to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Feb 24, 2024
1 parent 1aa2c8a commit 240644c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci_jdk11_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: temurin
cache: maven

- name: Build with Maven/JDK 11
run: mvn --batch-mode --file pom.xml clean package

Expand All @@ -29,6 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup
uses: actions/setup-java@v3
with:
Expand All @@ -39,6 +42,7 @@ jobs:
server-id: sonatype-nexus-snapshots
server-username: SONATYPE_OSSRH_USERNAME
server-password: SONATYPE_OSSRH_PASSWORD

- name: Deploy snapshot to Sonatype
run: mvn --batch-mode --file pom.xml --activate-profiles fast deploy
env:
Expand All @@ -50,15 +54,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: temurin
cache: maven
server-id: github-jackcess
server-username: SONATYPE_OSSRH_USERNAME
server-password: SONATYPE_OSSRH_PASSWORD
# server-username: spannm
server-password: GITHUB_TOKEN

- name: Deploy snapshot to Github packages
run: mvn --batch-mode --file pom.xml --activate-profiles fast,github-deploy-snapshot-package deploy
env:
Expand Down

0 comments on commit 240644c

Please sign in to comment.