mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
add asset uploads to CI
This commit is contained in:
parent
527fd1f7f4
commit
0878a98cba
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -58,8 +58,10 @@ jobs:
|
|||||||
MINOR_VERSION=$(echo "$RELEASE_VERSION" | cut -d'.' -f3)
|
MINOR_VERSION=$(echo "$RELEASE_VERSION" | cut -d'.' -f3)
|
||||||
NEXT_MINOR_VERSION=$(( MINOR_VERSION+1))
|
NEXT_MINOR_VERSION=$(( MINOR_VERSION+1))
|
||||||
NEXT_SNAPSHOT="${BASE_VERSION}.${NEXT_MINOR_VERSION}-SNAPSHOT"
|
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=NEXT_SNAPSHOT::${NEXT_SNAPSHOT}"
|
||||||
echo "::set-env name=RELEASE_VERSION::${RELEASE_VERSION}"
|
echo "::set-env name=RELEASE_VERSION::${RELEASE_VERSION}"
|
||||||
|
echo "::set-env name=RELEASE_TAGNAME::${RELEASE_TAGNAME}"
|
||||||
|
|
||||||
- name: prepare release
|
- name: prepare release
|
||||||
run: scripts/release-prepare.sh
|
run: scripts/release-prepare.sh
|
||||||
@ -114,6 +116,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: guidebook
|
name: guidebook
|
||||||
path: 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:
|
docs:
|
||||||
needs: release
|
needs: release
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
Loading…
Reference in New Issue
Block a user