Skip to content

Commit 17e231a

Browse files
try to fix temporal releases
1 parent f1595bb commit 17e231a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/commit-release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 11
16+
- name: Set version from gradle.properties
17+
run: echo "version=` cat gradle.properties | grep ^version= | grep -o [\\.0-9]* `" >> $GITHUB_ENV
1618
- name: Build
1719
run: ./gradlew packageUberJarForCurrentOS
20+
env:
21+
additional_version: ""
1822
- name: Create Release
1923
id: create_release
2024
uses: actions/create-release@v1
2125
env:
2226
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2327
with:
2428
tag_name: build-${{ github.sha }}
25-
release_name: Commit ${{ github.sha }}
29+
release_name: "Build #${{ github.run_number }}"
2630
body: It is just temporal release for ${{ github.sha }} commit
2731
draft: false
2832
prerelease: true
@@ -33,6 +37,6 @@ jobs:
3337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3438
with:
3539
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
36-
asset_path: ./build/compose/jars/KotlinPublicationScriptsBuilder-linux-x64.jar
40+
asset_path: "./desktop/build/compose/jars/kmppscriptbuilder.desktop-linux-x64-${{ env.version }}${{ env.additional_version }}.jar"
3741
asset_name: KotlinPublicationScriptsBuilder-linux-x64.jar
3842
asset_content_type: application/java-archive

0 commit comments

Comments
 (0)