@@ -426,59 +426,60 @@ jobs:
426
426
path : ${{ github.workspace }}/build/reports/pluginVerifier
427
427
428
428
upload-release :
429
- # # Update Unreleased section with the current release note
430
- # - name: Patch Changelog
431
- # if: ${{ steps.properties.outputs.changelog != '' }}
432
- # env:
433
- # CHANGELOG: ${{ steps.properties.outputs.changelog }}
434
- # run: |
435
- # ./gradlew patchChangelog --release-note="$CHANGELOG"
436
-
437
- - name : Download the plugin
438
- uses : actions/download-artifact@v4
439
- with :
440
- name : ${{ steps.artifact.outputs.filename }}
441
- path : ./build/distributions/
442
-
443
- # Upload artifact as a release asset
444
- - name : Upload Release Asset
445
- env :
446
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
447
- run : gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
448
-
449
- # Publish the plugin to JetBrains Marketplace
450
- - name : Publish Plugin
451
- env :
452
- PUBLISH_TOKEN : ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
453
- CERTIFICATE_CHAIN : ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }}
454
- PRIVATE_KEY : ${{ secrets.JETBRAINS_PRIVATE_KEY }}
455
- PRIVATE_KEY_PASSWORD : ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }}
456
- run : ./gradlew publishPlugin
457
-
458
- # Create a pull request
459
- - name : Create Pull Request
460
- if : ${{ steps.properties.outputs.changelog != '' }}
461
- env :
462
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
463
- run : |
464
- VERSION="${{ github.event.release.tag_name }}"
465
- BRANCH="changelog-update-$VERSION"
466
- LABEL="release changelog"
467
-
468
- git config user.email "[email protected] "
469
- git config user.name "GitHub Action"
470
-
471
- git checkout -b $BRANCH
472
- git commit -am "Changelog update - $VERSION"
473
- git push --set-upstream origin $BRANCH
474
-
475
- gh label create "$LABEL" \
476
- --description "Pull requests with release changelog update" \
477
- --force \
478
- || true
479
-
480
- gh pr create \
481
- --title "Changelog update - \`$VERSION\`" \
482
- --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
483
- --label "$LABEL" \
484
- --head $BRANCH
429
+ steps :
430
+ # # Update Unreleased section with the current release note
431
+ # - name: Patch Changelog
432
+ # if: ${{ steps.properties.outputs.changelog != '' }}
433
+ # env:
434
+ # CHANGELOG: ${{ steps.properties.outputs.changelog }}
435
+ # run: |
436
+ # ./gradlew patchChangelog --release-note="$CHANGELOG"
437
+
438
+ - name : Download the plugin
439
+ uses : actions/download-artifact@v4
440
+ with :
441
+ name : ${{ steps.artifact.outputs.filename }}
442
+ path : ./build/distributions/
443
+
444
+ # Upload artifact as a release asset
445
+ - name : Upload Release Asset
446
+ env :
447
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
448
+ run : gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
449
+
450
+ # Publish the plugin to JetBrains Marketplace
451
+ - name : Publish Plugin
452
+ env :
453
+ PUBLISH_TOKEN : ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
454
+ CERTIFICATE_CHAIN : ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }}
455
+ PRIVATE_KEY : ${{ secrets.JETBRAINS_PRIVATE_KEY }}
456
+ PRIVATE_KEY_PASSWORD : ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }}
457
+ run : ./gradlew publishPlugin
458
+
459
+ # Create a pull request
460
+ - name : Create Pull Request
461
+ if : ${{ steps.properties.outputs.changelog != '' }}
462
+ env :
463
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
464
+ run : |
465
+ VERSION="${{ github.event.release.tag_name }}"
466
+ BRANCH="changelog-update-$VERSION"
467
+ LABEL="release changelog"
468
+
469
+ git config user.email "[email protected] "
470
+ git config user.name "GitHub Action"
471
+
472
+ git checkout -b $BRANCH
473
+ git commit -am "Changelog update - $VERSION"
474
+ git push --set-upstream origin $BRANCH
475
+
476
+ gh label create "$LABEL" \
477
+ --description "Pull requests with release changelog update" \
478
+ --force \
479
+ || true
480
+
481
+ gh pr create \
482
+ --title "Changelog update - \`$VERSION\`" \
483
+ --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
484
+ --label "$LABEL" \
485
+ --head $BRANCH
0 commit comments