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