Bump actions/upload-artifact from 3 to 4 #523
Workflow file for this run
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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn -B package site --file pom.xml | |
- name: Store artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: models | |
path: | | |
target/out.sqlite3 | |
target/out.ttl | |
target/site | |
target/anomalies.txt | |
# - name: Slack Notification | |
# uses: bryannice/[email protected] | |
# env: | |
# SLACK_INCOMING_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK }} | |
# SLACK_MESSAGE: "New successful build by ${{ github.actor }} for commit ${{ github.sha }}" | |
# SLACK_TITLE: "${{ github.repository }}" |