From b6a0fec90ddc0f4ef8b2265611089f09745ff000 Mon Sep 17 00:00:00 2001 From: brokiem Date: Wed, 16 Jun 2021 15:39:46 +0800 Subject: [PATCH] add maven build --- .github/workflows/maven-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/maven-build.yml diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 0000000..6ff2dd9 --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,24 @@ +name: CI + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }} + strategy: + matrix: + java: [ '11' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: Barrel + path: target/Barrel-1.0.0-SNAPSHOT.jar \ No newline at end of file