mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Save package version on artifacts
This commit is contained in:
parent
e7f7c12485
commit
6e351b7e8e
@ -16,6 +16,8 @@ jobs:
|
||||
command: |
|
||||
make release
|
||||
mkdir -p artifacts
|
||||
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
||||
echo "${VERSION}" >> artifacts/version
|
||||
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
@ -47,7 +49,8 @@ jobs:
|
||||
command: |
|
||||
# go get github.com/tcnksm/ghr
|
||||
# VERSION=$(git log -1 --pretty=%B)
|
||||
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
||||
VERSION=$(cat ./artifacts/version)
|
||||
rm ./artifacts/version
|
||||
# VERSION=${CIRCLE_TAG}
|
||||
# VERSION=$(./artifacts/ --version)
|
||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
|
||||
|
Loading…
Reference in New Issue
Block a user