From 559234f0dd9845e42101047c4a648ee199d75262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20F?= Date: Sat, 4 Jul 2020 20:20:09 +0100 Subject: [PATCH] Add CI --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..81cbf78 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Java CI + +on: + push: + tags: + - 'v*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Create Release + id: create_release + uses: actions/create-release@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: false + - name: Upload release artifact + id: upload_release_artifact + uses: actions/upload-artifact@v2.0.1 + with: + path: ${{ github.workspace }}/target/BeesPlus-*.jar