mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 23:57:07 +00:00
Use rust binary to deploy crates index
This commit is contained in:
parent
b7bf89f011
commit
b198bc5729
3 changed files with 6 additions and 5 deletions
BIN
scripts/crates-index
Executable file
BIN
scripts/crates-index
Executable file
Binary file not shown.
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue