GitHub Actions - Release - separate changelog related job from the release

This commit is contained in:
Jakub Chrzanowski 2020-07-07 06:26:29 +02:00 committed by Jakub Chrzanowski
parent 2fc4b4cf60
commit 6fe45d61b1
2 changed files with 23 additions and 0 deletions

View File

@ -33,6 +33,28 @@ jobs:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: ./gradlew publishPlugin run: ./gradlew publishPlugin
# Patch changelog, commit and push to the current repository
changelog:
name: Update Changelog
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 1.8
# Publish the plugin to the Marketplace
- name: Patch Changelog
run: ./gradlew patchChangelog
# Commit patched Changelog # Commit patched Changelog
- name: Commit files - name: Commit files
run: | run: |

View File

@ -10,6 +10,7 @@
- Update `org.jetbrains.changelog` dependency to `v0.3.3` - Update `org.jetbrains.changelog` dependency to `v0.3.3`
- Update Gradle Wrapper to `v6.5.1` - Update Gradle Wrapper to `v6.5.1`
- Run GitHub Actions Release workflow on `prereleased` event - Run GitHub Actions Release workflow on `prereleased` event
- GitHub Actions - Release - separate changelog related job from the release
### Fixed ### Fixed
- Remove vendor website from `plugin.xml` - Remove vendor website from `plugin.xml`