Skip to content

Commit 9ffc2d1

Browse files
committed
Manage the version number in the root project
1 parent 1776faa commit 9ffc2d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ jobs:
4949

5050
- name: Set version
5151
id: set-version
52-
working-directory: ./compile
5352
run: ./gradlew properties | grep "^version:" | awk '{print $2}' | { read v; echo "::set-output name=version::$v"; }
5453

5554
- name: Print version
5655
run: echo ${{ steps.set-version.outputs.version }}
5756

5857
- name: Publish plugin
5958
if: github.event_name == 'push' && endsWith(steps.set-version.outputs.version, 'SNAPSHOT') == false
60-
working-directory: ./compile
6159
run: ./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}

compile/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
group=org.domaframework.doma
2-
version=2.0.1-SNAPSHOT

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
group=org.domaframework.doma
2+
version=2.0.1-SNAPSHOT
3+
release.useAutomaticVersion=true

0 commit comments

Comments
 (0)