Skip to content

Bump version to 0.4.18 #60

Bump version to 0.4.18

Bump version to 0.4.18 #60

Workflow file for this run

name: Update release with binaries
on:
push:
tags:
- v*
jobs:
update_release:
if: github.repository == 'mrmans0n/compose-rules'
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TERM: dumb
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- uses: gradle/actions/setup-gradle@v4
- name: Add artifact version to ENV
run: echo "VERSION=$(./gradlew -q printVersion)" >> $GITHUB_ENV
- name: Build the fat jars for CLI usage
if: success() && !endsWith(env.VERSION, '-SNAPSHOT')
run: ./gradlew clean :rules:ktlint:shadowJar :rules:detekt:shadowJar -PuberJar --rerun-tasks
- name: Upload ktlint fat jars binaries to release
if: success() && !endsWith(env.VERSION, '-SNAPSHOT')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rules/ktlint/build/libs/ktlint-${{ env.VERSION }}-all.jar
tag: v${{ env.VERSION }}
asset_name: ktlint-compose-${{ env.VERSION }}-all.jar
overwrite: true
- name: Upload detekt fat jars binaries to release
if: success() && !endsWith(env.VERSION, '-SNAPSHOT')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rules/detekt/build/libs/detekt-${{ env.VERSION }}-all.jar
tag: v${{ env.VERSION }}
asset_name: detekt-compose-${{ env.VERSION }}-all.jar
overwrite: true