Skip to content

Commit

Permalink
Updated build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cowwoc committed Feb 19, 2024
1 parent 6243fa4 commit cc33a8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: |
8
17
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
# Avoid caching generated artifacts
path: |
Expand Down
32 changes: 12 additions & 20 deletions .github/workflows/deploy_to_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
TAG: ${{ steps.open-staging.outputs.TAG }}
STAGING_REPOSITORY_ID: ${{ steps.open-staging.outputs.STAGING_REPOSITORY_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: |
Expand All @@ -37,15 +37,13 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
# Avoid caching generated artifacts
path: |
~/.m2/repository/*
!~/.m2/repository/com/github/cowwoc/pouch
key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.OS }}-maven-

- name: Configure Git User
run: |
Expand Down Expand Up @@ -81,10 +79,10 @@ jobs:
needs: open-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ needs.open-release.outputs.TAG }}
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: |
Expand All @@ -97,15 +95,13 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
# Avoid caching generated artifacts
path: |
~/.m2/repository/*
!~/.m2/repository/com/github/cowwoc/pouch
key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.OS }}-maven-

- name: Deploy to Maven Central
run: >
Expand All @@ -116,10 +112,10 @@ jobs:
needs: [ open-release, deploy ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ needs.open-release.outputs.TAG }}
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: |
Expand All @@ -132,15 +128,13 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
# Avoid caching generated artifacts
path: |
~/.m2/repository/*
!~/.m2/repository/com/github/cowwoc/pouch
key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.OS }}-maven-

- name: Close staging repository
run: >
Expand All @@ -154,11 +148,11 @@ jobs:
runs-on: ubuntu-latest
if: ${{ always() && contains(needs.*.result, 'failure') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: |
Expand All @@ -171,15 +165,13 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
# Avoid caching generated artifacts
path: |
~/.m2/repository/*
!~/.m2/repository/com/github/cowwoc/pouch
key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.OS }}-maven-

- name: Configure Git User
run: |
Expand Down

0 comments on commit cc33a8c

Please sign in to comment.