Skip to content

Update publish.yml

Update publish.yml #5

Workflow file for this run

name: Publish
on:
push:
tags:
- v*.*.*
permissions:
contents: write
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
architecture: x64
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: buildPlugin
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: idea-jcstress-plugin ${{ github.ref_name }}
files: build/distributions/idea-jcstress-plugin-*.zip
body_path: changelog/${{ github.ref_name }}.md