Skip to content

Commit

Permalink
README update, the whole codebase reformatted to standard Kotlin conv…
Browse files Browse the repository at this point in the history
…entions (#5)
  • Loading branch information
morisil authored Jan 6, 2025
1 parent 49b0c9c commit a7d7232
Show file tree
Hide file tree
Showing 17 changed files with 608 additions and 586 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
build_branch:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4.2.2
- name: Checkout sources
uses: actions/checkout@v4.2.2

- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23
- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2

- name: Build
run: ./gradlew build
- name: Build
run: ./gradlew build
28 changes: 14 additions & 14 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
build_main:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4.2.2
- name: Checkout sources
uses: actions/checkout@v4.2.2

- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23
- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2

- name: Build
run: ./gradlew build sourcesJar dokkaGeneratePublicationHtml publish
env:
ORG_GRADLE_PROJECT_githubActor: ${{ secrets.GITHUBACTOR }}
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUBTOKEN }}
- name: Build
run: ./gradlew build sourcesJar dokkaGeneratePublicationHtml publish
env:
ORG_GRADLE_PROJECT_githubActor: ${{ secrets.GITHUBACTOR }}
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUBTOKEN }}
80 changes: 40 additions & 40 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build release
on:
release:
types: [published]
types: [ published ]
jobs:
build_release:
runs-on: ubuntu-latest
Expand All @@ -10,49 +10,49 @@ jobs:
# added or changed files to the repository.
contents: write
steps:
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout sources
uses: actions/checkout@v4.2.2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Checkout sources
uses: actions/checkout@v4.2.2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23
- name: Setup Java
uses: actions/setup-java@v4.6.0
with:
distribution: 'temurin'
java-version: 23

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2

- name: Build
env:
ORG_GRADLE_PROJECT_githubActor: ${{ secrets.GITHUBACTOR }}
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUBTOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUser: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: ./gradlew -Pversion=$VERSION build sourcesJar dokkaGeneratePublicationHtml publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Build
env:
ORG_GRADLE_PROJECT_githubActor: ${{ secrets.GITHUBACTOR }}
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUBTOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUser: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: ./gradlew -Pversion=$VERSION build sourcesJar dokkaGeneratePublicationHtml publishToSonatype closeAndReleaseSonatypeStagingRepository

- name: Checkout main branch
uses: actions/checkout@v4.2.2
with:
ref: main
fetch-depth: 0
- name: Checkout main branch
uses: actions/checkout@v4.2.2
with:
ref: main
fetch-depth: 0

- name: Update README
run: sh .github/scripts/update-readme-version.sh
- name: Update README
run: sh .github/scripts/update-readme-version.sh

- name: Create Pull Request
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: Dependency version in README.md updated to ${{ env.VERSION }}
file_pattern: 'README.md'
- name: Create Pull Request
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: Dependency version in README.md updated to ${{ env.VERSION }}
file_pattern: 'README.md'
2 changes: 1 addition & 1 deletion .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: GitHub Actions Version Updater
on:
schedule:
# Automatically run on every Sunday
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'

jobs:
build:
Expand Down
Loading

0 comments on commit a7d7232

Please sign in to comment.