diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..71b2e6c --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,35 @@ +name: Java CI + +on: [push] + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Build with Maven + run: mvn --batch-mode --update-snapshots verify + + pack-artifacts: + runs-on: ubuntu-latest + needs: tests + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Build with Maven + run: mvn --batch-mode --update-snapshots verify + - uses: actions/upload-artifact@v2 + with: + name: artifacts + path: ${{ github.workspace }}/*/target/*.jar \ No newline at end of file