Update maven.yml
This commit is contained in:
parent
70bdbd848a
commit
ff845b8167
1 changed files with 15 additions and 7 deletions
22
.github/workflows/maven.yml
vendored
22
.github/workflows/maven.yml
vendored
|
@ -1,13 +1,12 @@
|
||||||
# This workflow will build a Java project with Maven
|
# This will build the BCV repo and upload the package as an artifact
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
||||||
|
|
||||||
name: Java CI with Maven
|
name: Build BCV
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -16,10 +15,19 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '8'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
- name: Extract Maven project version
|
||||||
|
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
||||||
|
id: project
|
||||||
|
- name: 'Upload Artifact'
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT
|
||||||
|
path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar
|
||||||
|
retention-days: 90
|
||||||
|
|
Loading…
Reference in a new issue