Pack artifacts

This commit is contained in:
bannikovilea 2021-10-26 03:04:43 +05:00
parent 6ebbd00cfd
commit cf61071056

View File

@ -3,7 +3,7 @@ name: Java CI
on: [push] on: [push]
jobs: jobs:
build: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -15,3 +15,21 @@ jobs:
distribution: 'adopt' distribution: 'adopt'
- name: Build with Maven - name: Build with Maven
run: mvn --batch-mode --update-snapshots verify 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