v2.4.0 #10
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 manually w/ proper access. | |
# | |
# Additional Docs: | |
# - GitHub Actions: https://help.github.com/en/actions | |
name: release | |
on: | |
release: | |
types: [created] | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
release: | |
strategy: | |
matrix: | |
product: [ "IC-2022.2", "IC-2023.1", "IC-2023.2" ] | |
max-parallel: 1 | |
env: | |
PRODUCT_NAME: ${{ matrix.product }} | |
runs-on: ubuntu-latest | |
steps: | |
# Check out current repository | |
- name: Fetch Sources | |
uses: actions/checkout@v2 | |
# 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 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Publish Stable Plugin | |
env: | |
PRODUCT_NAME: ${{ matrix.product }} | |
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} | |
PUBLISH_CHANNEL: release | |
run: ./gradlew --stacktrace publishPlugin |