-
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (41 loc) · 1.31 KB
/
Copy pathpublish.yaml
File metadata and controls
45 lines (41 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow.
# Running the publishPlugin task requires all following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
# See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information.
name: Publish
on:
release:
types:
- prereleased
- released
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment: jetbrains-marketplace
steps:
-
name: Fetch sources
uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
-
name: Set up Java
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
-
name: Set up Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-read-only: true
-
name: Publish plugin to Marketplace
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
run: |
chmod +x ./gradlew
./gradlew publishPlugin