2.1.0 #16
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
name: Release | |
on: | |
release: | |
types: [ created, published ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
# Build artifact using buildPlugin Gradle task | |
- name: Build Plugin | |
run: ./gradlew -PpluginVersion=${{ github.event.release.tag_name }} buildPlugin | |
# Upload plugin artifact to make it available in the next jobs | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: plugin-artifact | |
path: ./build/distributions/intellij-stepbuilder-codegen-plugin-${{ github.event.release.tag_name }}.zip | |
- name: Publish Plugin to Jetbrains | |
env: | |
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | |
run: ./gradlew -PpluginVersion=${{ github.event.release.tag_name }} publishPlugin | |
- name: Discord notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: '{{ EVENT_PAYLOAD.repository.full_name }} version {{ EVENT_PAYLOAD.release.name }} is out!' |