Skip to content

Commit 2982cf9

Browse files
committed
chore: enable the plugin publish step
- next release should be able to run automatically - no need to do extra changelog content augmentation, we just need to update the release version date
1 parent a9cb596 commit 2982cf9

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/release.yml

+1-23
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,14 @@ jobs:
2727
java-version: 21
2828
cache: gradle
2929

30-
# Set environment variables
31-
- name: Export Properties
32-
id: properties
33-
shell: bash
34-
run: |
35-
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
36-
${{ github.event.release.body }}
37-
EOM
38-
)"
39-
40-
CHANGELOG="${CHANGELOG//'%'/'%25'}"
41-
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
42-
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
43-
44-
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
4530

4631
# Update Unreleased section with the current release note
4732
- name: Patch Changelog
48-
if: ${{ steps.properties.outputs.changelog != '' }}
49-
env:
50-
CHANGELOG: ${{ steps.properties.outputs.changelog }}
5133
run: |
52-
./gradlew patchChangelog --release-note="$CHANGELOG"
34+
./gradlew patchChangelog
5335
5436
# Publish the plugin to the Marketplace
55-
# TODO - enable this step (by removing the `if` block) when JetBrains is clear about release procedures
5637
- name: Publish Plugin
57-
if: false
5838
env:
5939
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
6040
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
@@ -67,12 +47,10 @@ jobs:
6747
env:
6848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6949
run: |
70-
./gradlew clean pluginZip --info
7150
gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* --clobber
7251
7352
# Create pull request
7453
- name: Create Pull Request
75-
if: ${{ steps.properties.outputs.changelog != '' }}
7654
env:
7755
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7856
run: |

0 commit comments

Comments
 (0)