Skip to content

Commit

Permalink
added command line version input for mvn
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 14, 2023
1 parent 86f4b33 commit 7c8293a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit 7c8293a

Please sign in to comment.