Merge pull request #150 from mercari/fix_upload_tag #3
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-jetbrains | |
on: | |
push: | |
tags: | |
- "jetbrains/v*" | |
permissions: | |
contents: write | |
jobs: | |
release-jetbrains: | |
name: release JetBrains plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Set up Java environment for the next steps | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
# Setup Gradle | |
- uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-home-cache-cleanup: true | |
# Publish the plugin to JetBrains Marketplace | |
- name: Publish Plugin | |
env: | |
PUBLISH_TOKEN: ${{ secrets.JET_BRAINS_PUBLISH_TOKEN }} | |
run: ./gradlew publishPlugin | |
working-directory: ./lsp/client/jetbrains | |
# Upload artifact as a release asset | |
- name: Upload Release Asset | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload ${{ env.GITHUB_REF_NAME }} ./build/distributions/* | |
working-directory: ./lsp/client/jetbrains |