Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/maven-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,27 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Set up JDK 11 for x64
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
architecture: x64

- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v22
if: ${{ github.event.repository.fork == false }}
- uses: s4u/maven-settings-action@v2.8.0
with:
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
servers: '[{ "id": "sonatype", "username": "${{ secrets.SONATYPE_BOT_USERNAME}}", "password": "${{ secrets.SONATYPE_BOT_TOKEN}}" }]'

sonatypeSnapshots: true

- uses: s4u/maven-settings-action@v2.8.0
if: ${{ github.event_name == 'push' }}
with:
servers: |
[{
"id": "central-portal-snapshots",
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
}]

- name: Deploy the artifact
if: ${{ github.event_name == 'push' }}
run: mvn help:effective-settings -B -V clean deploy -e
6 changes: 2 additions & 4 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ jobs:
distribution: 'temurin'
architecture: x64

- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v22
- uses: s4u/maven-settings-action@v2.8.0
with:
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'

sonatypeSnapshots: true

- name: Build the Maven verify phase
run: mvn -B -V clean verify -Prun-its -Pci
Loading