Re-added explicit deps as the gradle plugin does not seem to add them… #76
Workflow file for this run
This file contains 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: 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 check buildPlugin | |
- name: Release | |
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981 | |
with: | |
body_path: ${{ github.workspace }}-CHANGELOG.txt | |
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 }} |