From 83d76405cf9dc73000e5529f7ae0614db6c160c7 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 21 Apr 2020 12:46:40 +0200 Subject: Update gradle.yml --- .github/workflows/gradle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1a4c295..881ef2d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Upload release +name: Build release on: push: # Sequence of patterns matched against refs/tags @@ -42,6 +42,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: ./libs/build/parquet-${{ github.ref }}.jar - asset_name: parquet-${{ github.ref }}.jar + asset_path: ./libs/build/parquet-${GITHUB_REF##*/}.jar + asset_name: parquet-${GITHUB_REF##*/}.jar asset_content_type: application/jar -- cgit v1.2.3 From ff2543971485c5b7b6d871975e9d24f93544c126 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 21 Apr 2020 12:52:06 +0200 Subject: Update gradle.yml --- .github/workflows/gradle.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 881ef2d..ae42815 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -35,6 +35,9 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: true + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1 @@ -42,6 +45,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: ./libs/build/parquet-${GITHUB_REF##*/}.jar - asset_name: parquet-${GITHUB_REF##*/}.jar + asset_path: ./libs/build/parquet-${{ steps.get_version.outputs.VERSION }}.jar + asset_name: parquet-${{ steps.get_version.outputs.VERSION }}.jar asset_content_type: application/jar -- cgit v1.2.3