aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gradle.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/gradle.yml')
-rw-r--r--.github/workflows/gradle.yml29
1 files changed, 21 insertions, 8 deletions
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index a3522b0..88d5241 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -1,13 +1,12 @@
# 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: Java CI with Gradle
-
+name: Upload release
on:
push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
+ # Sequence of patterns matched against refs/tags
+ tags:
+ - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
@@ -26,9 +25,23 @@ jobs:
run: ./gradlew remapJar
- name: Remove intermediary JAR
run: rm build/libs/parquet*-dev.jar
- - name: Upload to release
- uses: JasonEtco/upload-to-release@master
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- args: build/lib/parquet*.jar
+ tag_name: ${{ github.ref }}
+ release_name: Release ${{ github.ref }}
+ draft: false
+ prerelease: true
+ - name: Upload Release Asset
+ id: upload-release-asset
+ uses: actions/upload-release-asset@v1
env:
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*.jar
+ asset_name: parquet-${{ github.ref }}.jar
+ asset_content_type: application/jar