diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 391d196..71b2e6c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -3,7 +3,7 @@ name: Java CI on: [push] jobs: - build: + tests: runs-on: ubuntu-latest steps: @@ -14,4 +14,22 @@ jobs: java-version: '11' distribution: 'adopt' - name: Build with Maven - run: mvn --batch-mode --update-snapshots verify \ No newline at end of file + 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