Add in-tree buildkite pipeline

This commit is contained in:
Michael Vines
2018-05-21 23:02:54 -07:00
parent 2786357082
commit 34514d65bc
7 changed files with 97 additions and 0 deletions

19
ci/publish.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash -e
cd $(dirname $0)/..
if [[ -z "$BUILDKITE_TAG" ]]; then
# Skip publish if this is not a tagged release
exit 0
fi
if [[ -z "$CRATES_IO_TOKEN" ]];
echo CRATES_IO_TOKEN undefined
exit 1
fi
cargo package
# TODO: Ensure the published version matches the contents of BUILDKITE_TAG
cargo publish --token "$CRATES_IO_TOKEN"
exit 0