mirror of
				https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
				synced 2025-11-04 05:00:04 +00:00 
			
		
		
		
	try to fix temporal releases
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/commit-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/commit-release.yml
									
									
									
									
										vendored
									
									
								
							@@ -13,8 +13,12 @@ jobs:
 | 
			
		||||
        uses: actions/setup-java@v1
 | 
			
		||||
        with:
 | 
			
		||||
          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
 | 
			
		||||
        run: ./gradlew packageUberJarForCurrentOS
 | 
			
		||||
        env:
 | 
			
		||||
          additional_version: ""
 | 
			
		||||
      - name: Create Release
 | 
			
		||||
        id: create_release
 | 
			
		||||
        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
 | 
			
		||||
        with:
 | 
			
		||||
          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
 | 
			
		||||
          draft: false
 | 
			
		||||
          prerelease: true
 | 
			
		||||
@@ -33,6 +37,6 @@ jobs:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        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 
 | 
			
		||||
          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_content_type: application/java-archive
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user