Skip to content

Update Deprecated Actions. Bump update-artifact to v4 #58

Update Deprecated Actions. Bump update-artifact to v4

Update Deprecated Actions. Bump update-artifact to v4 #58

Workflow file for this run

# 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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch: # manual triggering, for debugging purposes
jobs:
mavenBuilds:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('.github/workflows/*.*', '**/pom.xml', '**/META-INF/MANIFEST.MF', 'build/de.cau.cs.kieler.pragmatics.targetplatform/de.cau.cs.kieler.pragmatics.targetplatform.target') }}
restore-keys: |
${{ runner.os }}-maven-
# Maven build update site
- name: Build update site
run: MAVEN_OPTS="-Xmx2048M" mvn --update-snapshots clean verify -P pragmatics --file build/pom.xml
- name: Archive Pragmatics Repository Artifact
uses: actions/upload-artifact@v4
with:
name: Pragmatics Repository Artifact
path: build/de.cau.cs.kieler.pragmatics.repository/target/repository/
if-no-files-found: error