Skip to content

Commit dbccea2

Browse files
committed
feat(pipeline): Add tagged version for build and release process
1 parent c515ceb commit dbccea2

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/actions/build/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ runs:
1515

1616
- name: Build PlugIn
1717
shell: bash
18-
run: ./gradlew buildPlugin
18+
run: ./gradlew buildPlugin -PpluginVersion=${{ inputs.version }}
1919

2020
- name: Tests and Verify Plugin
2121
shell: bash
22-
run: ./gradlew verifyPlugin check
22+
run: ./gradlew verifyPlugin check -PpluginVersion=${{ inputs.version }}
2323

2424
inputs:
25+
version:
26+
description: Version of the Release
27+
required: true
2528
java_version:
2629
description: Java version to use
2730
required: false

.github/workflows/buildRelease.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
4444
- name: Build and Test
4545
uses: ./.github/actions/build
46+
with:
47+
version: ${{ steps.versions.outputs.TAGGED_VERSION }}
4648

4749
- name: Create GitHub Release
4850
uses: ncipollo/release-action@v1
@@ -57,6 +59,6 @@ jobs:
5759
- name: Create IntelliJ's Marketplace Release
5860
# Publish only valid semantic (real) versions
5961
if: steps.check_version.outputs.valid == 'true'
60-
run: ./gradlew publishPlugin
62+
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }}
6163
env:
6264
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ org.gradle.caching=true
77

88
pluginName=html-attribute-folder
99
pluginGroup=dev.zbinski
10-
pluginVersion=1.4.0
10+
pluginVersion=0.0.0-dev
1111
platformVersion=2025.3
1212
# @see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-types.html#IntelliJPlatformType
1313
platformType=IU

src/main/resources/META-INF/plugin.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
88
<name>HTML Attribute Folder</name>
99

10-
<version>1.4.0</version>
11-
1210
<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
1311
<vendor email="dawid@zbinski.dev" url="https://zbinski.dev">Dawid Zbiński</vendor>
1412

0 commit comments

Comments
 (0)