Skip to content

Commit ff845b8

Browse files
authored
Update maven.yml
1 parent 70bdbd8 commit ff845b8

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
1+
# This will build the BCV repo and upload the package as an artifact
32

4-
name: Java CI with Maven
3+
name: Build BCV
54

65
on:
76
push:
8-
branches: [ master ]
7+
branches: [ main ]
98
pull_request:
10-
branches: [ master ]
9+
branches: [ main ]
1110

1211
jobs:
1312
build:
@@ -16,10 +15,19 @@ jobs:
1615

1716
steps:
1817
- uses: actions/checkout@v2
19-
- name: Set up JDK 11
18+
- name: Set up JDK 8
2019
uses: actions/setup-java@v2
2120
with:
22-
java-version: '11'
21+
java-version: '8'
2322
distribution: 'adopt'
2423
- name: Build with Maven
2524
run: mvn -B package --file pom.xml
25+
- name: Extract Maven project version
26+
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
27+
id: project
28+
- name: 'Upload Artifact'
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: Bytecode-Viewer-${{ steps.project.outputs.version }}-SNAPSHOT
32+
path: target/Bytecode-Viewer-${{ steps.project.outputs.version }}.jar
33+
retention-days: 90

0 commit comments

Comments
 (0)