Small style changes; remove non-standard tags and PIID #117
Workflow file for this run
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: 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 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: liberica | |
| - name: Build | |
| run: ./gradlew build buildPlugin | |
| - 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 }} |