This commit is contained in:
Jonathan Shook 2020-03-17 06:09:59 -05:00
commit 98d8f06c62
2 changed files with 25 additions and 1 deletions

View File

@ -25,5 +25,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: mvn package nosqlbench
- name: mvn package
run: mvn package
- name: mvn verify
run: mvn verify

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