Build the jar on release #9
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: 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 }} |