-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f33fb7c
commit 1f8bf0f
Showing
1 changed file
with
18 additions
and
11 deletions.
There are no files selected for viewing
29 changes: 18 additions & 11 deletions
29
.github/workflows/main.yaml → .github/workflows/snapshot_deploy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,48 @@ | ||
name: Java CI | ||
name: snapshot_deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
java_build: | ||
strategy: | ||
matrix: | ||
java_version: [ 8 ] | ||
|
||
snapshot_deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java_version }} | ||
with: | ||
lfs: true | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
lfs: 'true' | ||
java-version: ${{ matrix.java_version }} | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
cache: maven | ||
server-id: ossrh | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_PASSWORD | ||
- name: Build with JDK ${{ matrix.java_version }} | ||
|
||
- name: snapshot_deploy | ||
run: mvn -U -B deploy | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
|
||
compliance: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
cache: maven | ||
|
||
- name: License Compliance | ||
run: mvn -U -P compliance org.honton.chas:license-maven-plugin:compliance |