Skip to content

Fix GitHub workflows (#34) #4

Fix GitHub workflows (#34)

Fix GitHub workflows (#34) #4

name: Build and Publish to JetBrains Marketplace
on:
push:
branches: [master]
paths:
- ".github/workflows/publish-jetbrains.yml"
- "client/intellij/**"
pull_request:
branches: [master]
paths:
- ".github/workflows/publish-jetbrains.yml"
- "client/intellij/**"
jobs:
publish-jetbrains:
name: Publish release to JetBrains Marketplace
runs-on: ubuntu-latest
environment:
name: jetbrains
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Publish Plugin
if: github.ref == 'refs/heads/master'
working-directory: client/intellij
run: ./gradlew publishPlugin -Ptoken=${{ secrets.JETBRAINS_TOKEN }}