mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-15 08:07:08 +00:00
24 lines
802 B
YAML
24 lines
802 B
YAML
name: Build index
|
|
on:
|
|
repository_dispatch:
|
|
types: build-index
|
|
|
|
jobs:
|
|
build:
|
|
name: Build index
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: "Build index"
|
|
run: |
|
|
cd rust
|
|
RUST_BACKTRACE=full cargo run --bin books-index --features books-index --manifest-path=Cargo.toml /tmp/books.js
|
|
RUST_BACKTRACE=full cargo run --bin lints-index --features books-index --manifest-path=Cargo.toml /tmp/lints.js
|
|
RUST_BACKTRACE=full cargo run --bin labels-index --features labels-index --manifest-path=Cargo.toml /tmp/labels.js
|
|
zip /tmp/index.zip /tmp/*.js
|
|
- name: "Upload Index Artifact"
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: index.zip
|
|
path: /tmp/index.zip
|
|
|