Skip to content

Commit

Permalink
Merge pull request #18 from digipost/actions-patch
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
hanskhe authored Nov 16, 2023
2 parents 318427a + ea1ec24 commit c7be599
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '1.8', '11' ]
java: [ '8', '11' ]

name: build java ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
server-id: github
cache: 'maven'

- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml

Expand All @@ -37,7 +41,7 @@ jobs:
else
TAG=${GITHUB_REF#refs/heads/}-SNAPSHOT
fi
echo ::set-output name=version::${TAG//\//-}
echo "version=${TAG//\//-}" >> $GITHUB_OUTPUT
deploy_snapshot:
if: startsWith(github.ref, 'refs/heads/')
Expand All @@ -46,7 +50,7 @@ jobs:

name: Deploy snapshot
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- uses: digipost/[email protected]
Expand All @@ -62,7 +66,7 @@ jobs:
name: Release to Sonatype
steps:
- name: Check out Git repository
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
submodules: true
- name: Release to Central Repository
Expand Down

0 comments on commit c7be599

Please sign in to comment.