Skip to content

Commit

Permalink
Feature/improving build (#7)
Browse files Browse the repository at this point in the history
* github actions: build_branch job name fixed
* build_release github action updated to auto commit updated README.md referencing the tagged version.
  • Loading branch information
morisil authored Aug 29, 2024
1 parent 4e2683b commit a71a10b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches-ignore:
- main
jobs:
build_main:
build_branch:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```
Expand Down Expand Up @@ -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")
}
```

0 comments on commit a71a10b

Please sign in to comment.