Skip to content

Commit

Permalink
chore: update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Mar 20, 2024
1 parent d60276c commit 989b11c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: 'temurin'
cache: 'maven'
- name: mvn build
run: ./mvnw clean install -Djib.skip -B
run: ./mvnw clean install -Djib.skip -B -ntp
6 changes: 3 additions & 3 deletions .github/workflows/release-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
# We need a personal access token to be able to push to a protected branch
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
java-package: jdk
distribution: adopt
distribution: 'temurin'
architecture: x64
# this also creates settings.xml with the following server
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
# We need a personal access token to be able to push to a protected branch
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
java-package: jdk
distribution: adopt
distribution: 'temurin'
architecture: x64
# this also creates settings.xml with the following server
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml
Expand Down

0 comments on commit 989b11c

Please sign in to comment.