Skip to content

Commit

Permalink
ci: bump v3 actions to v4 (#58)
Browse files Browse the repository at this point in the history
Actions based on Node 16.x.x (which many of the v3's of the official actions are)
are deprecated: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

This commit bumps them to v4 to avoid any unpleasant surprises in the future.
Additionally, it folds the cache step into the Java setup step using
setup-java's cache setting.

Signed-off-by: TTtie <me@tttie.cz>
  • Loading branch information
TTtie authored May 8, 2024
1 parent 1f216ab commit 878a8f3
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: adopt
- name: cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: maven
- name: build
run: mvn install
- name: artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Community.jar
path: target/Community.jar
Expand Down

0 comments on commit 878a8f3

Please sign in to comment.