diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index d13420a..45103c0 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -7,7 +7,7 @@ on: branches-ignore: - main jobs: - build_main: + build_branch: runs-on: ubuntu-latest steps: - name: Checkout sources diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index bce3174..d321034 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -6,6 +6,10 @@ on: jobs: build_release: runs-on: ubuntu-latest + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write steps: - name: Write release version run: | @@ -30,3 +34,10 @@ jobs: ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeUser: ${{ secrets.SONATYPE_USER }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} + - name: Update README + run: sed -i 's/com\.xemantic\.kotlin:xemantic-kotlin-swing-dsl-\(core\|test\):[0-9]\+\(\.[0-9]\+\)*\>/com.xemantic.kotlin:xemantic-kotlin-swing-dsl-\1:1.2/g' README.md + - name: Commit README + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: README.md version updated to ${VERSION} + file_pattern: 'README.md' diff --git a/README.md b/README.md index 548fd4b..61ed6d5 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Add to your `build.gradle.kts`: ```kotlin dependencies { - implementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-core:1.1") + implementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-core:1.2") runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.8.1") } ``` @@ -156,6 +156,6 @@ Add this dependency to your `build.gradle.kts` for testing support: ```kotlin dependencies { - testImplementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-test:1.1") + testImplementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-test:1.2") } ```