2020-06-04 09:35:03 +00:00
|
|
|
name: Build index
|
|
|
|
on:
|
2020-08-06 03:30:29 +00:00
|
|
|
workflow_dispatch:
|
2020-06-04 09:35:03 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build index
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: "Build index"
|
|
|
|
run: |
|
|
|
|
cd rust
|
2020-12-04 14:03:43 +00:00
|
|
|
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=Cargo.toml books -d /tmp/books.js
|
|
|
|
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=Cargo.toml lints -d /tmp/lints.js
|
|
|
|
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=Cargo.toml labels -d /tmp/labels.js
|
2020-12-03 15:35:13 +00:00
|
|
|
git clone --depth 1 https://github.com/jplatte/caniuse.rs.git /tmp/caniuse
|
2020-12-04 14:03:43 +00:00
|
|
|
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=Cargo.toml caniuse -r /tmp/caniuse -d /tmp/caniuse.js
|
2021-10-16 14:44:21 +00:00
|
|
|
git clone --depth 1 https://github.com/nrc/rfc-index.git /tmp/rfc-index
|
|
|
|
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=Cargo.toml rfcs -r /tmp/rfc-index -d /tmp/rfcs.js
|
2020-06-04 09:35:03 +00:00
|
|
|
zip /tmp/index.zip /tmp/*.js
|
|
|
|
- name: "Upload Index Artifact"
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: index.zip
|
|
|
|
path: /tmp/index.zip
|
|
|
|
|