Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Zalas <[email protected]>
  • Loading branch information
jakzal committed Oct 13, 2022
1 parent dd5d1ad commit 20e91ab
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,22 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
java-version: '8'
distribution: 'zulu'
cache: 'maven'

- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: JARs
path: target/*.jar
Expand Down

0 comments on commit 20e91ab

Please sign in to comment.