-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.41 KB
/
publish-release.yaml
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
46
name: Publish Release
on:
release:
types: [published]
jobs:
prepare-release:
name: "Prepare Release"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: robinraju/[email protected]
with:
tag: ${{ github.ref_name }}
fileName: 'jetbrains-plugin.zip'
out-file-path: 'packages/jetbrains-plugin/build/distributions/'
- name: Publish Plugin In General Availability
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }}
JB_PUBLISH_CHANNEL: "ga"
JB_PUBLISH_TOKEN: ${{ secrets.JB_PUBLISH_TOKEN }}
JB_CERTIFICATE_CHAIN: ${{ secrets.JB_CERTIFICATE_CHAIN }}
JB_PRIVATE_KEY: ${{ secrets.JB_PRIVATE_KEY }}
JB_PRIVATE_KEY_PASSWORD: ${{ secrets.JB_PRIVATE_KEY_PASSWORD }}
run: |
set -e
./gradlew ":packages:jetbrains-plugin:publishPlugin" $(./gradlew ":packages:jetbrains-plugin:publishPlugin" --dry-run | awk '/^:/ { print "-x" $1 }' | sed '$ d')
git checkout main
git merge ${{ github.ref_name }}
git push origin main