diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 086e75b4..fd5808c2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -32,17 +32,16 @@ jobs:
# RELEASE_VERSION: ${{ inputs.version }}
RELEASE_VERSION: 0.99.0
run: |
- sed -ri 's|version *= *".*|version = "'$RELEASE_VERSION'"|g' ./buildSrc/src/main/kotlin/akkurate.base-conventions.gradle.kts;
+ echo 'version = "'$RELEASE_VERSION'"' > ./buildSrc/src/main/kotlin/akkurate.version.gradle.kts;
sed -ri 's|CONFIG_JSON_VERSION *:.*|CONFIG_JSON_VERSION: '$RELEASE_VERSION'|g' ./.github/workflows/deploy-website.yml;
sed -ri 's||g' ./documentation/v.list;
sed -ri 's||g' ./documentation/writerside.cfg;
- - run: git diff
-# - name: Commit and push
-# uses: stefanzweifel/git-auto-commit-action@v5
-# with:
-# commit_message: release ${{ inputs.version }}
-# branch: release/${{ inputs.version }}
-# create_branch: true
-# commit_author: Johann Pardanaud
-# tagging_message: ${{ inputs.version }}
+ - name: Commit and push
+ uses: stefanzweifel/git-auto-commit-action@v5
+ with:
+ commit_message: release ${{ inputs.version }}
+ branch: release/${{ inputs.version }}
+ create_branch: true
+ commit_author: Johann Pardanaud
+ tagging_message: ${{ inputs.version }}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 732085cc..27d18a83 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -14,7 +14,8 @@ imports.
## Testing
-When making some changes to existing code, make sure **all the tests** still pass, and adapt them when needed.
+When making some changes to existing code, make sure **all the tests** still pass by running `./gradlew allTests test`,
+and adapt them when needed.
If you're fixing a bug, create a new test reproducing the bug to avoid future regressions.
diff --git a/buildSrc/src/main/kotlin/akkurate.base-conventions.gradle.kts b/buildSrc/src/main/kotlin/akkurate.base-conventions.gradle.kts
index 7efdb287..a5c0eff8 100644
--- a/buildSrc/src/main/kotlin/akkurate.base-conventions.gradle.kts
+++ b/buildSrc/src/main/kotlin/akkurate.base-conventions.gradle.kts
@@ -1,9 +1,9 @@
plugins {
+ id("akkurate.version")
id("com.adarshr.test-logger")
}
group = "dev.nesk.akkurate"
-version = "0.11.0"
repositories {
mavenCentral()
diff --git a/buildSrc/src/main/kotlin/akkurate.version.gradle.kts b/buildSrc/src/main/kotlin/akkurate.version.gradle.kts
new file mode 100644
index 00000000..ea402e72
--- /dev/null
+++ b/buildSrc/src/main/kotlin/akkurate.version.gradle.kts
@@ -0,0 +1 @@
+version = "0.11.0"