rust-search-extension/.github/workflows/crates-index.yml
2020-03-13 22:59:18 +08:00

22 lines
514 B
YAML

name: crates-index
on:
repository_dispatch:
types: build-crates-index
schedule:
- cron: "10 14 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- name: Download crates.io dumped database
run: |
wget https://static.crates.io/db-dump.tar.gz -O /tmp/db-dump.tar.gz
- name: Deloy crates index
run: ./scripts/deploy-crates-index.sh