Skip to content

Commit

Permalink
added Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Legion2 committed Apr 12, 2020
1 parent fffbd22 commit 15a57a1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
release:
types: [published]

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK 8
uses: actions/[email protected]
with:
java-version: 8
- name: Gradle Build
run: gradle build
- name: Get upload url
id: release-id
run: |
RELEASE_ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
echo "::set-output name=upload_url::https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets{?name,label}"
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release-id.outputs.upload_url }}
asset_path: build/distributions/open-cue-cli.zip
asset_name: open-cue-cli.zip
asset_content_type: application/zip

0 comments on commit 15a57a1

Please sign in to comment.