try to fix temporal releases

This commit is contained in:
InsanusMokrassar 2021-03-01 20:46:35 +06:00
parent f1595bb5ed
commit 17e231aa5e

View File

@ -13,8 +13,12 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: 11 java-version: 11
- name: Set version from gradle.properties
run: echo "version=` cat gradle.properties | grep ^version= | grep -o [\\.0-9]* `" >> $GITHUB_ENV
- name: Build - name: Build
run: ./gradlew packageUberJarForCurrentOS run: ./gradlew packageUberJarForCurrentOS
env:
additional_version: ""
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
@ -22,7 +26,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with: with:
tag_name: build-${{ github.sha }} tag_name: build-${{ github.sha }}
release_name: Commit ${{ github.sha }} release_name: "Build #${{ github.run_number }}"
body: It is just temporal release for ${{ github.sha }} commit body: It is just temporal release for ${{ github.sha }} commit
draft: false draft: false
prerelease: true prerelease: true
@ -33,6 +37,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
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 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
asset_path: ./build/compose/jars/KotlinPublicationScriptsBuilder-linux-x64.jar asset_path: "./desktop/build/compose/jars/kmppscriptbuilder.desktop-linux-x64-${{ env.version }}${{ env.additional_version }}.jar"
asset_name: KotlinPublicationScriptsBuilder-linux-x64.jar asset_name: KotlinPublicationScriptsBuilder-linux-x64.jar
asset_content_type: application/java-archive asset_content_type: application/java-archive