mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-01 23:41:03 +00:00
Improved GIT_VERSION build checks
This commit is contained in:
parent
3fa24b919f
commit
cc7291562e
@ -51,7 +51,9 @@ jobs:
|
|||||||
make release
|
make release
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
||||||
|
GIT_VERSION=$(git describe --exact-match --tags)
|
||||||
echo "${VERSION}" >> artifacts/version
|
echo "${VERSION}" >> artifacts/version
|
||||||
|
echo "${GIT_VERSION}" >> artifacts/git_version
|
||||||
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
|
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
@ -141,7 +143,8 @@ jobs:
|
|||||||
VERSION=$(cat ./artifacts/version)
|
VERSION=$(cat ./artifacts/version)
|
||||||
rm ./artifacts/version
|
rm ./artifacts/version
|
||||||
# VERSION_TAG=${CIRCLE_TAG}
|
# VERSION_TAG=${CIRCLE_TAG}
|
||||||
VERSION_TAG=$(git describe --exact-match --tags)
|
VERSION_TAG=$(cat ./artifacts/git_version)
|
||||||
|
# VERSION_TAG=$(git describe --exact-match --tags)
|
||||||
if [ "$VERSION" == "$VERSION_TAG" ]; then
|
if [ "$VERSION" == "$VERSION_TAG" ]; then
|
||||||
echo "Versions match, publishing to Github"
|
echo "Versions match, publishing to Github"
|
||||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user