Use rust binary to deploy crates index

This commit is contained in:
Folyd 2019-12-30 20:44:59 +08:00
parent b7bf89f011
commit b198bc5729
3 changed files with 6 additions and 5 deletions

BIN
scripts/crates-index Executable file

Binary file not shown.

View file

@ -6,9 +6,7 @@ BRANCH="gh-pages"
build() {
echo "Starting building crates-index..."
cd rust
cargo run ${CRATES_INDEX_PATH}
cd ..
./scripts/crates-index ${CRATES_INDEX_PATH}
echo "{\"version\": $(date +%s)}" > /tmp/version.json
}

View file

@ -16,8 +16,11 @@ trigger() {
}
main() {
echo "Notice: ACCESS_TOKEN environment is required!"
echo ""
if [[ -z "${ACCESS_TOKEN}" ]]
then
echo "Notice: ACCESS_TOKEN environment is required!"
exit 0
fi
event_types=(0 deploy-docs build-binary)
echo "Please select trigger type:"