mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
updated actions for master
This commit is contained in:
parent
9e3bd5bfca
commit
650f227ef0
73
.github/workflows/release.yml
vendored
73
.github/workflows/release.yml
vendored
@ -95,11 +95,6 @@ jobs:
|
|||||||
MAVEN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
|
MAVEN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
|
||||||
MAVEN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}
|
MAVEN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}
|
||||||
|
|
||||||
# - name: prepare_release
|
|
||||||
# run: mvn --global-settings deploy.xml --batch-mode clean release:prepare -DdevelopmentVersion=${NEXT_SNAPSHOT} -DreleaseVersion=${RELEASE_VERSION}
|
|
||||||
# - name: perform_release
|
|
||||||
# run: mvn --global-settings deploy.xml --batch-mode release:perform
|
|
||||||
|
|
||||||
- name: upload artifacts
|
- name: upload artifacts
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
@ -116,28 +111,60 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: guidebook
|
name: guidebook
|
||||||
path: guidebook
|
path: guidebook
|
||||||
- name: find latest release
|
|
||||||
run: |
|
- name: Create Release
|
||||||
LATEST_GH_RELEASE_ID=$(curl --silent "https://api.github.com/repos/nosqlbench/nosqlbench/releases/latest" | jq -r .id)
|
id: create_release
|
||||||
echo "::set-env name=LATEST_GH_RELEASE_ID::${LATEST_GH_RELEASE_ID}"
|
uses: actions/create-release@v1
|
||||||
- name: upload jar
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
asset_path: nb/target/nb.jar
|
tag_name: ${{ github.ref }}
|
||||||
asset_name: nb.jar
|
release_name: Release ${{ github.ref }}
|
||||||
asset_content_type: application/octet-stream
|
draft: false
|
||||||
upload_url: https://uploads.github.com/repos/nosqlbench/nosqlbench/releases/${{ env.LATEST_GH_RELEASE_ID }}/assets?name=nb.jar
|
prerelease: false
|
||||||
- name: upload binary
|
- name: Upload nb.jar
|
||||||
|
id: upload-nb-jar
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
asset_path: nb/target/nb
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_name: nb
|
asset_path: nb/target/nb.jar
|
||||||
asset_content_type: application/octet-stream
|
asset_name: nb.jar
|
||||||
upload_url: https://uploads.github.com/repos/nosqlbench/nosqlbench/releases/${{ env.LATEST_GH_RELEASE_ID }}/assets?name=nb
|
asset_content_type: application/octet-stream
|
||||||
|
- name: Upload nb
|
||||||
|
id: upload-nb-binary
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: nb/target/nb
|
||||||
|
asset_name: nb
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
# - name: find latest release
|
||||||
|
# run: |
|
||||||
|
# LATEST_GH_RELEASE_ID=$(curl --silent "https://api.github.com/repos/nosqlbench/nosqlbench/releases/latest" | jq -r .id)
|
||||||
|
# echo "::set-env name=LATEST_GH_RELEASE_ID::${LATEST_GH_RELEASE_ID}"
|
||||||
|
# - name: upload jar
|
||||||
|
# uses: actions/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/${{ env.LATEST_GH_RELEASE_ID }}/assets{?name,label}
|
||||||
|
# - name: upload binary
|
||||||
|
# uses: actions/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/${{ env.LATEST_GH_RELEASE_ID }}/assets{?name,label}
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
needs: release
|
needs: release
|
||||||
|
Loading…
Reference in New Issue
Block a user