diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-04-21 13:04:44 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-04-21 13:04:44 +0200 |
commit | 6635c19ab3f60fa963a0daa45aab41559b2494de (patch) | |
tree | 65e56bd653b77b7f5c29f65cd6caad1c94428351 /.github/workflows/gradle.yml | |
parent | 26759bec85a06844628e7191f1154fff946f49c5 (diff) | |
parent | ff2543971485c5b7b6d871975e9d24f93544c126 (diff) | |
download | parquet-6635c19ab3f60fa963a0daa45aab41559b2494de.tar.gz |
Merge branch 'master' of github.com:kompetenzbolzen/parquet
Diffstat (limited to '.github/workflows/gradle.yml')
-rw-r--r-- | .github/workflows/gradle.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1a4c295..ae42815 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 @@ -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 |