-
Notifications
You must be signed in to change notification settings - Fork 6
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 #7 from digipost/buildscript-bumps
Update build.yml with new action versions
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 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 |
---|---|---|
|
@@ -12,11 +12,14 @@ jobs: | |
name: build java ${{ matrix.java }} | ||
steps: | ||
- name: Checkout reposistory | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v4 | ||
- 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 | ||
|
||
|
@@ -36,7 +39,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/') | ||
|
@@ -45,7 +48,7 @@ jobs: | |
|
||
name: Deploy snapshot | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: digipost/[email protected] | ||
with: | ||
sonatype_secrets: ${{ secrets.sonatype_secrets }} | ||
|
@@ -59,7 +62,7 @@ jobs: | |
name: Release to Sonatype | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v4 | ||
- name: Release to Central Repository | ||
uses: digipost/[email protected] | ||
with: | ||
|