Skip to content

Commit 759b349

Browse files
committed
Test
1 parent 0d4afe7 commit 759b349

File tree

2 files changed

+3
-40
lines changed

2 files changed

+3
-40
lines changed

.github/workflows/publish.yml

+2-39
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish
22

33
on:
44
push:
5-
tags:
6-
- '[0-9]+.[0-9]+.[0-9]+'
5+
branches:
6+
- mehdi.plugin-release-test
77

88
permissions:
99
contents: write
@@ -63,43 +63,6 @@ jobs:
6363
- name: Setup Gradle
6464
uses: gradle/actions/setup-gradle@v4
6565

66-
- name: Execute buildHealth for build-logic
67-
run: './gradlew -p build-logic buildHealth -s'
68-
69-
- name: Execute check
70-
run: './gradlew check -s'
71-
72-
- name: Execute buildHealth for main project
73-
run: './gradlew buildHealth -s'
74-
75-
- name: Publish artifacts
76-
run: './gradlew publishToMavenCentral -s --no-configuration-cache'
77-
78-
- name: Prepare assets for Github Release
79-
run: |
80-
echo "Renaming assets to match Maven Central naming conventions."
81-
mv kotlin-format/build/libs/kotlin-format-${{ needs.release_version.outputs.version }}-all.jar kotlin-format/build/libs/kotlin-formatter-${{ needs.release_version.outputs.version }}-all.jar
82-
mv kotlin-format/build/distributions/kotlin-format-shadow-${{ needs.release_version.outputs.version }}.zip kotlin-format/build/distributions/kotlin-formatter-dist-${{ needs.release_version.outputs.version }}.zip
83-
84-
- name: Extract release notes
85-
id: release_notes
86-
uses: ffurrer2/extract-release-notes@v2
87-
88-
- name: Create GitHub Release
89-
uses: softprops/action-gh-release@v2
90-
with:
91-
tag_name: ${{ needs.release_version.outputs.version }}
92-
name: ${{ needs.release_version.outputs.version }}
93-
body: |
94-
${{ steps.release_notes.outputs.release_notes }}
95-
draft: false
96-
prerelease: false
97-
files: |
98-
kotlin-format/build/libs/kotlin-formatter-${{ needs.release_version.outputs.version }}-all.jar
99-
kotlin-format/build/distributions/kotlin-formatter-dist-${{ needs.release_version.outputs.version }}.zip
100-
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
10366
- name: Publish Idea Plugin
10467
run: |
10568
export IJ_PLUGIN_VERSION="${{ needs.release_version.outputs.version }}"

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ org.gradle.parallel=true
99
dependency.analysis.print.build.health=true
1010

1111
group=xyz.block.kotlin-formatter
12-
version=1.0.3-SNAPSHOT
12+
version=1.0.3-SNAPSHOT-2

0 commit comments

Comments
 (0)