mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Verifier fix (#19)
- run plugin verifier against 2019.3 2020.1 2020.2 - Plugin Verifier broken for artifacts with whitespaces in name
This commit is contained in:
parent
a1f029b0f6
commit
f9fca8690d
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -78,8 +78,8 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
name: ${{ steps.properties.outputs.name }}
|
name: ${{ steps.properties.outputs.name }}
|
||||||
version: ${{ steps.properties.outputs.version }}
|
version: ${{ steps.properties.outputs.version }}
|
||||||
artifact: ${{ steps.properties.outputs.name }}-${{ steps.properties.outputs.version }}.zip
|
|
||||||
changelog: ${{ steps.properties.outputs.changelog }}
|
changelog: ${{ steps.properties.outputs.changelog }}
|
||||||
|
artifact: ${{ steps.properties.outputs.artifact }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out current repository
|
||||||
@ -104,14 +104,15 @@ jobs:
|
|||||||
- name: Export Properties
|
- name: Export Properties
|
||||||
id: properties
|
id: properties
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=version::$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')"
|
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 ' ')"
|
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)
|
echo "::set-output name=version::$VERSION"
|
||||||
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
echo "::set-output name=name::$NAME"
|
||||||
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
|
||||||
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
|
||||||
echo "::set-output name=changelog::$CHANGELOG"
|
echo "::set-output name=changelog::$CHANGELOG"
|
||||||
|
echo "::set-output name=artifact::$ARTIFACT"
|
||||||
|
|
||||||
# Build artifact using buildPlugin Gradle task
|
# Build artifact using buildPlugin Gradle task
|
||||||
- name: Build Plugin
|
- name: Build Plugin
|
||||||
@ -143,7 +144,7 @@ jobs:
|
|||||||
id: verify
|
id: verify
|
||||||
uses: ChrisCarini/intellij-platform-plugin-verifier-action@v0.0.2
|
uses: ChrisCarini/intellij-platform-plugin-verifier-action@v0.0.2
|
||||||
with:
|
with:
|
||||||
plugin-location: plugin-artifact/${{ needs.build.outputs.artifact }}
|
plugin-location: plugin-artifact/*.zip
|
||||||
ide-versions: |
|
ide-versions: |
|
||||||
ideaIC:2019.3
|
ideaIC:2019.3
|
||||||
ideaIC:2020.1
|
ideaIC:2020.1
|
||||||
@ -151,6 +152,7 @@ jobs:
|
|||||||
|
|
||||||
# Print the output of the verify step
|
# Print the output of the verify step
|
||||||
- name: Print Logs
|
- name: Print Logs
|
||||||
|
if: ${{ always() }}
|
||||||
env:
|
env:
|
||||||
OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }}
|
OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
### Changed
|
### Changed
|
||||||
- GitHub Actions - run plugin verifier against 2019.3 2020.1 2020.2
|
- GitHub Actions - run plugin verifier against 2019.3 2020.1 2020.2
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- GitHub Actions - Plugin Verifier broken for artifacts with whitespaces in name
|
||||||
|
|
||||||
## [0.3.0]
|
## [0.3.0]
|
||||||
### Added
|
### Added
|
||||||
- Set publish channel depending on the plugin version, i.e. `1.0.0-beta` -> `beta` channel
|
- Set publish channel depending on the plugin version, i.e. `1.0.0-beta` -> `beta` channel
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pluginGroup = org.jetbrains.plugins.template
|
pluginGroup = org.jetbrains.plugins.template
|
||||||
pluginName = Template
|
pluginName = Template
|
||||||
pluginVersion = 0.3.0
|
pluginVersion = 0.3.1
|
||||||
pluginSinceBuild = 193
|
pluginSinceBuild = 193
|
||||||
pluginUntilBuild = 202.*
|
pluginUntilBuild = 202.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user