aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/gradle.yml7
1 files changed, 5 insertions, 2 deletions
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