Release #66
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 Actions Workflow is created for testing and preparing the plugin release in the following steps: | |
# - validate Gradle Wrapper, | |
# - run 'test' and 'verifyPlugin' tasks, | |
# - run Qodana inspections, | |
# - run 'buildPlugin' task and prepare artifact for the further tests, | |
# - run 'runPluginVerifier' task, | |
# - create a draft release. | |
# | |
# Workflow is triggered on push and pull_request events. | |
# | |
# GitHub Actions reference: https://help.github.com/en/actions | |
# | |
## JBIJPPTPL | |
name: Release | |
on: | |
create: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum | |
# Run verifyPlugin, IntelliJ Plugin Verifier, and test Gradle tasks | |
# Build plugin and provide the artifact for the next workflow jobs | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.properties.outputs.version }} | |
changelog: ${{ steps.properties.outputs.changelog }} | |
steps: | |
# Free GitHub Actions Environment Disk Space | |
- name: Maximize Build Space | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /opt/ghc | |
# Check out current repository | |
- name: Fetch Sources | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
cache: 'gradle' | |
# build edql repository | |
- name: Build library | |
id: edql-lib | |
shell: bash | |
run: | | |
./gradlew --info --no-daemon publishToMavenLocal | |
ls -al ~/.m2/repository/com/github/chengpohi | |
# Check out current repository | |
- name: Fetch plugin Sources | |
uses: actions/checkout@v3 | |
with: | |
repository: chengpohi/edql-idea-plugin | |
ref: develop | |
token: ${{ secrets.GH_PAT }} | |
path: 'idea-plugin' | |
- name: Build plugin | |
id: edql-plugin | |
shell: bash | |
run: | | |
cd idea-plugin && GH_ENV=CI ./gradlew --no-daemon buildPlugin | |
ls -lh build/distributions/* | |
cd .. | |
# Publish the plugin to the Marketplace | |
- name: Publish Plugin | |
env: | |
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | |
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} | |
run: | | |
cd idea-plugin && GH_ENV=CI ./gradlew publishPlugin | |