|
|
|
@ -78,8 +78,8 @@ jobs:
|
|
|
|
|
outputs:
|
|
|
|
|
name: ${{ steps.properties.outputs.name }}
|
|
|
|
|
version: ${{ steps.properties.outputs.version }}
|
|
|
|
|
artifact: ${{ steps.properties.outputs.name }}-${{ steps.properties.outputs.version }}.zip
|
|
|
|
|
changelog: ${{ steps.properties.outputs.changelog }}
|
|
|
|
|
artifact: ${{ steps.properties.outputs.artifact }}
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
@ -104,14 +104,15 @@ jobs:
|
|
|
|
|
- name: Export Properties
|
|
|
|
|
id: properties
|
|
|
|
|
run: |
|
|
|
|
|
echo "::set-output name=version::$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')"
|
|
|
|
|
echo "::set-output name=name::$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')"
|
|
|
|
|
VERSION="$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')"
|
|
|
|
|
NAME="$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')"
|
|
|
|
|
CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q | jq -sRr @uri)
|
|
|
|
|
ARTIFACT="${NAME}-${VERSION}.zip"
|
|
|
|
|
|
|
|
|
|
CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q)
|
|
|
|
|
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
|
|
|
|
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
|
|
|
|
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
|
|
|
|
echo "::set-output name=version::$VERSION"
|
|
|
|
|
echo "::set-output name=name::$NAME"
|
|
|
|
|
echo "::set-output name=changelog::$CHANGELOG"
|
|
|
|
|
echo "::set-output name=artifact::$ARTIFACT"
|
|
|
|
|
|
|
|
|
|
# Build artifact using buildPlugin Gradle task
|
|
|
|
|
- name: Build Plugin
|
|
|
|
@ -143,7 +144,7 @@ jobs:
|
|
|
|
|
id: verify
|
|
|
|
|
uses: ChrisCarini/intellij-platform-plugin-verifier-action@v0.0.2
|
|
|
|
|
with:
|
|
|
|
|
plugin-location: plugin-artifact/${{ needs.build.outputs.artifact }}
|
|
|
|
|
plugin-location: plugin-artifact/*.zip
|
|
|
|
|
ide-versions: |
|
|
|
|
|
ideaIC:2019.3
|
|
|
|
|
ideaIC:2020.1
|
|
|
|
@ -151,6 +152,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
# Print the output of the verify step
|
|
|
|
|
- name: Print Logs
|
|
|
|
|
if: ${{ always() }}
|
|
|
|
|
env:
|
|
|
|
|
OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }}
|
|
|
|
|
run: |
|
|
|
|
|