Skip to content

Resolve case-sensitivity problem that was breaking builds on case-sen… #80

Resolve case-sensitivity problem that was breaking builds on case-sen…

Resolve case-sensitivity problem that was breaking builds on case-sen… #80

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build info
id: build_info
run: |
BUILD_TAG=${GITHUB_REF#refs/tags/}
cat ./CHANGELOG.md | grep "$BUILD_TAG" | sed 's%^\*[[:space:]]*\*\*[0-9.]*\*\*[[:space:]]*%%g' > ${{ github.workspace }}-CHANGELOG.txt
echo "build_tag=${BUILD_TAG}" >> $GITHUB_OUTPUT
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: liberica
- name: Build
run: ./gradlew build
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
fail_on_unmatched_files: true
draft: false
prerelease: false
files:
build/distributions/checkstyle-idea-${{ steps.build_info.outputs.build_tag }}.zip
- name: Publish to Jetbrains Plugin Repo
run: ./gradlew publishPlugin
env:
JETBRAINS_PLUGIN_REPO_TOKEN: ${{ secrets.JETBRAINS_PLUGIN_REPO_TOKEN }}