diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e5ab1c14..567460698 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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