Loxone Client Kotlin release #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Loxone Client Kotlin release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| versionIncrement: | |
| description: "What version number to increment" | |
| required: true | |
| type: choice | |
| default: incrementPatch | |
| options: | |
| - incrementPatch | |
| - incrementMinor | |
| - incrementMajor | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| token: ${{ secrets.SMARTEON_GIT_TOKEN }} | |
| - name: Setup JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| overwrite-settings: false | |
| - name: Set up git configuration | |
| run: | | |
| git config --global user.name 'Smarteon Git' | |
| git config --global user.email 'accounts+git@smarteon.cz' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Release and push tag | |
| shell: bash | |
| run: | | |
| # Fetch a full copy of the repo, as required by release plugin: | |
| git fetch --tags --unshallow | |
| # Run release: | |
| ./gradlew release -Prelease.versionIncrementer=${{ inputs.versionIncrement }} | |
| - name: Publish to Maven Central | |
| shell: bash | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSS_USER }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSS_PASS }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASS }} | |
| run: | | |
| ./gradlew publishToMavenCentral |