You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GitHub Actions Workflow created for handling the release process based on the draft release prepared
2
-
# with the Build workflow. Running the publishPlugin task requires the PUBLISH_TOKEN secret provided.
1
+
# GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow.
2
+
# Running the publishPlugin task requires all the following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
3
+
# See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information.
3
4
4
5
name: Release
5
6
on:
@@ -8,70 +9,77 @@ on:
8
9
9
10
jobs:
10
11
11
-
# Prepare and publish the plugin to the Marketplace repository
12
+
# Prepare and publish the plugin to JetBrains Marketplace repository
12
13
release:
13
14
name: Publish Plugin
14
15
runs-on: ubuntu-latest
16
+
permissions:
17
+
contents: write
18
+
pull-requests: write
15
19
steps:
16
20
17
-
# Check out current repository
21
+
# Free GitHub Actions Environment Disk Space
22
+
- name: Maximize Build Space
23
+
uses: jlumbroso/free-disk-space@v1.3.1
24
+
with:
25
+
tool-cache: false
26
+
large-packages: false
27
+
28
+
# Check out the current repository
18
29
- name: Fetch Sources
19
-
uses: actions/checkout@v2.4.0
30
+
uses: actions/checkout@v5
20
31
with:
21
32
ref: ${{ github.event.release.tag_name }}
22
33
23
-
#Setup Java 11 environment for the next steps
34
+
#Set up the Java environment for the next steps
24
35
- name: Setup Java
25
-
uses: actions/setup-java@v2
36
+
uses: actions/setup-java@v5
26
37
with:
27
38
distribution: zulu
28
-
java-version: 11
29
-
cache: gradle
39
+
java-version: 21
30
40
31
-
# Set environment variables
32
-
- name: Export Properties
33
-
id: properties
34
-
shell: bash
35
-
run: |
36
-
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
37
-
${{ github.event.release.body }}
38
-
EOM
39
-
)"
40
-
41
-
CHANGELOG="${CHANGELOG//'%'/'%25'}"
42
-
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
43
-
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
44
-
45
-
echo "::set-output name=changelog::$CHANGELOG"
46
-
47
-
# Update Unreleased section with the current release note
41
+
# Setup Gradle
42
+
- name: Setup Gradle
43
+
uses: gradle/actions/setup-gradle@v5
44
+
with:
45
+
cache-read-only: true
46
+
47
+
# Update the Unreleased section with the current release note
0 commit comments