From 7d901e61dde6634ee4bddd17fb90d85448558310 Mon Sep 17 00:00:00 2001 From: grog Date: Thu, 12 Oct 2023 20:16:05 -0700 Subject: [PATCH] another try --- .github/workflows/build.yml | 9 ++++++--- version.txt | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 version.txt diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2afb1369a..fbdc3a0eb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,22 +15,25 @@ 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 run: mvn --batch-mode -Dtest=!**/OpenCV* test -q + - name: Package with Maven run: mvn package -DskipTests - name: Determine Next Version id: next_version run: | - latest_release_tag=$(git describe --tags --abbrev=0) + current_version=$(cat version.txt) major_minor="1.1." - current_version="${latest_release_tag#v}" increment_version=$((current_version + 1)) next_version="${major_minor}${increment_version}" - echo "::set-output name=next_version::${next_version}" + echo "$next_version" > version.txt + echo "next_version=${next_version}" >> $GITHUB_OUTPUT - name: Create Release id: create_release diff --git a/version.txt b/version.txt new file mode 100644 index 0000000000..1cc5f657e0 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +1.1.0 \ No newline at end of file