-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added command line version input for mvn
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|