From 7c8293a04f001af90e29049981149d56d16ff922 Mon Sep 17 00:00:00 2001 From: grog Date: Fri, 13 Oct 2023 17:49:15 -0700 Subject: [PATCH] added command line version input for mvn --- .github/workflows/build.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4968faf2f..ce89b8e47b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,26 +14,18 @@ jobs: steps: - uses: actions/checkout@v3 - # - name: Set up JDK 11 - # uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 - # with: - # java-version: '11' - # distribution: 'adopt' - - # - name: Dependency Test - # run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q - - # - name: Build and Test with Maven - # run: mvn --batch-mode -Dtest=!**/OpenCV* test -q + with: + java-version: '11' + distribution: 'adopt' - # - name: Package with Maven - # run: mvn package -DskipTests + - name: Dependency Test + run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q - - name: Fake Build - run: | - mkdir -p target - echo ${{ github.sha }} > ./target/myrobotlab.zip + - name: Build and Test with Maven + run: mvn --batch-mode -Dtest=!**/OpenCV* test -q - name: Get next version uses: reecetech/version-increment@2023.9.3 @@ -42,6 +34,14 @@ jobs: scheme: semver increment: patch + - name: Package with Maven + run: "mvn package -DskipTests -Dversion=${{ steps.version.outputs.version }} -q" + + # - name: Fake Build + # run: | + # mkdir -p target + # echo ${{ github.sha }} > ./target/myrobotlab.zip + - name: Release id: release uses: softprops/action-gh-release@v1