-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from digipost/use-jakarta-compatible-jaxb
Use Jakarta compatible JAXB
- Loading branch information
Showing
8 changed files
with
113 additions
and
93 deletions.
There are no files selected for viewing
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,67 +1,55 @@ | ||
name: Build and deploy | ||
name: Build and publish | ||
on: push | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ '1.8', '11' ] | ||
|
||
name: build java ${{ matrix.java }} | ||
java: [ '8', '11', '17' ] | ||
name: Build on Java ${{ matrix.java }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up java | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ matrix.java }} | ||
cache: "maven" | ||
- name: Build with Maven | ||
run: mvn -B package --no-transfer-progress --file pom.xml | ||
run: mvn -B verify --no-transfer-progress --show-version | ||
|
||
makeversion: | ||
if: github.ref != 'refs/heads/main' | ||
|
||
publishing_parameters: | ||
needs: build | ||
name: Publishing parameters | ||
runs-on: ubuntu-latest | ||
name: Create version | ||
outputs: | ||
is_release: ${{ steps.version.outputs.is_release }} | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- name: Decide on build version | ||
- name: Determine version | ||
id: version | ||
run: | | ||
if [[ $GITHUB_REF == *"tags"* ]]; then | ||
TAG=${GITHUB_REF#refs/tags/} | ||
is_release=true | ||
version=${GITHUB_REF#refs/tags/} | ||
else | ||
TAG=${GITHUB_REF#refs/heads/}-SNAPSHOT | ||
is_release=false | ||
version=${GITHUB_REF#refs/heads/}-SNAPSHOT | ||
fi | ||
echo ::set-output name=version::${TAG//\//-} | ||
echo "is_release=${is_release//\//-}" >> $GITHUB_OUTPUT | ||
echo "version=${version//\//-}" >> $GITHUB_OUTPUT | ||
deploy_snapshot: | ||
if: startsWith(github.ref, 'refs/heads/') | ||
needs: makeversion | ||
runs-on: ubuntu-latest | ||
|
||
name: Deploy snapshot | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: digipost/[email protected] | ||
with: | ||
sonatype_secrets: ${{ secrets.sonatype_secrets }} | ||
release_version: ${{ needs.makeversion.outputs.version }} | ||
perform_release: false | ||
release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
publish: | ||
needs: publishing_parameters | ||
name: Publish ${{ needs.publishing_parameters.outputs.version }} | ||
runs-on: ubuntu-latest | ||
needs: makeversion | ||
name: Release to Sonatype | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
- name: Release to Central Repository | ||
uses: digipost/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: digipost/action-maven-publish@v1 | ||
with: | ||
sonatype_secrets: ${{ secrets.sonatype_secrets }} | ||
release_version: ${{ needs.makeversion.outputs.version }} | ||
perform_release: true | ||
release_version: ${{ needs.publishing_parameters.outputs.version }} | ||
perform_release: ${{ needs.publishing_parameters.outputs.is_release }} |
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
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
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
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
Oops, something went wrong.