From 61b32838ff93fb03eea688e3a900f8987cbc6a32 Mon Sep 17 00:00:00 2001 From: Konloch Date: Fri, 23 Jul 2021 18:31:56 -0700 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..f769a0a8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +# This will build the BCV repo and upload the package as an artifact + +name: Build BCV + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Build with Maven + 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