build for 241 #24
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: Publish Plugin | |
on: | |
push: | |
tags: | |
- v* | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
IDEA_PUBLISH_TOKEN: ${{ secrets.IDEA_PUBLISH_TOKEN }} | |
steps: | |
- name: Config | |
uses: actions/[email protected] | |
with: | |
script: | | |
// refs/tags/v1.3.7 | |
const ver = context.ref.substring(11) | |
const sha = context.sha.substring(0, 7) | |
core.exportVariable("CI_BUILD_VERSION", ver) | |
core.info(`ver = ${ver}`) | |
core.info(`sha = ${sha}`) | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Publish 2023.1 | |
env: | |
IDEA_VER: 231 | |
run: ./gradlew publishPlugin | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: v${{ env.CI_BUILD_VERSION }} | |
path: build/distributions/*.zip |