-
Notifications
You must be signed in to change notification settings - Fork 22
54 lines (47 loc) · 1.41 KB
/
release.yml
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
47
48
49
50
51
52
53
54
# GitHub Action Workflow for releasing a new stable version of the plugin.
#
# Workflow is triggered manually w/ proper access.
#
# Additional Docs:
# - GitHub Actions: https://help.github.com/en/actions
name: release
on:
release:
types: [created]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
strategy:
matrix:
product: [ "IC-2022.2", "IC-2023.1", "IC-2023.2" ]
max-parallel: 1
env:
PRODUCT_NAME: ${{ matrix.product }}
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
# Generate resources/plugin-changenotes.html
- name: Generate Changenotes
run: |
gh release view --json body --jq '{ text: .body }' | gh api \
--method POST \
-H "Accept: application/vnd.github.v3+json" \
--input - \
/markdown \
> resources/plugin-changenotes.html
- name: Log Changenotes Content
run: cat resources/plugin-changenotes.html
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Publish Stable Plugin
env:
PRODUCT_NAME: ${{ matrix.product }}
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
PUBLISH_CHANNEL: release
run: ./gradlew --stacktrace publishPlugin