Skip to content

Build the jar on release #9

Build the jar on release

Build the jar on release #9

name: Build the jar on release
on:
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish plugin
run: >
./gradlew
-Pversion=${{ github.event.release.tag_name }}
-Pintellij.publish.token=${{ secrets.INTELLIJ_PUBLISH_TOKEN }}
build publishPlugin
- name: Attach artifacts to the release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'build/distributions/Git extended update-index-*.zip'
file_glob: true
tag: ${{ github.ref }}