-
-
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.
- Loading branch information
Showing
2 changed files
with
5 additions
and
37 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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
name: Java CI | ||
|
||
#on: [push] | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
@@ -20,37 +15,7 @@ jobs: | |
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Dependency Test | ||
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q | ||
|
||
- name: Build and Test with Maven | ||
- name: Build with Maven | ||
run: mvn --batch-mode -Dtest=!**/OpenCV* test -q | ||
|
||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
id: version | ||
with: | ||
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 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
files: | | ||
./target/myrobotlab.zip | ||
./target/myrobotlab.jar | ||
name: "${{ steps.version.outputs.version }} Nixie" | ||
tag_name: ${{ steps.version.outputs.version }} | ||
generate_release_notes: true | ||
body_path: ./release-template.md |
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