v2.7.0 #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Action Workflow for releasing a new stable version of the plugin. | |
# | |
# Workflow is triggered when a new release is published. | |
# | |
# Additional Docs: | |
# - GitHub Actions: https://help.github.com/en/actions | |
name: release | |
on: | |
release: | |
types: [created] | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
release: | |
runs-on: codebuild-ion-intellij-plugin-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large | |
steps: | |
# Check out current repository | |
- uses: actions/checkout@v4 | |
# 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 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Publish Stable Plugin | |
env: | |
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} | |
PUBLISH_CHANNEL: release | |
run: ./gradlew --stacktrace publishPlugin |