Bump actions/upload-artifact from 3.1.2 to 4.4.3 #612
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
name: pr-build | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install libhyperic-sigar | |
run: sudo apt-get install libhyperic-sigar-java | |
- name: fetch head | |
uses: actions/checkout@v3 | |
- name: setup jdk | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'maven' | |
settings-path: ${{ github.workspace }}/.mvn/ | |
- name: cache .m2 | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: maven build | |
run: ./mvnw -B -U verify -s $GITHUB_WORKSPACE/.mvn/settings.xml | |
env: | |
GITHUB_TOKEN: ${{secrets.serverpass}} | |
- uses: actions/[email protected] | |
with: | |
name: todos-build-artifacts | |
path: ${{ github.workspace }}/**/target/** |