add asset uploads to CI

This commit is contained in:
Jonathan Shook 2020-03-17 06:00:58 -05:00 committed by GitHub
parent 527fd1f7f4
commit 0878a98cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,10 @@ jobs:
MINOR_VERSION=$(echo "$RELEASE_VERSION" | cut -d'.' -f3)
NEXT_MINOR_VERSION=$(( MINOR_VERSION+1))
NEXT_SNAPSHOT="${BASE_VERSION}.${NEXT_MINOR_VERSION}-SNAPSHOT"
RELEASE_TAGNAME="nosqlbench-${RELEASE_VERSION}"
echo "::set-env name=NEXT_SNAPSHOT::${NEXT_SNAPSHOT}"
echo "::set-env name=RELEASE_VERSION::${RELEASE_VERSION}"
echo "::set-env name=RELEASE_TAGNAME::${RELEASE_TAGNAME}"
- name: prepare release
run: scripts/release-prepare.sh
@ -114,6 +116,25 @@ jobs:
with:
name: guidebook
path: guidebook
- name: upload jar
uses: upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: nb/target/nb.jar
asset_name: nb.jar
asset_content_type: application/octet-stream
upload_url: https://uploads.github.com/repos/nosqlbench/nosqlbench/releases/${RELEASE_TAGNAME}/assets
- name: upload binary
uses: upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: nb/target/nb
asset_name: nb
asset_content_type: application/octet-stream
upload_url: https://uploads.github.com/repos/nosqlbench/nosqlbench/releases/${RELEASE_TAGNAME}/assets
docs:
needs: release
runs-on: ubuntu-18.04