name: publish artifacts
on:
schedule:
- cron: "30 4 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: Swatinem/rust-cache@v2
- run: cargo build --release --features build
- name: build artifacts from today's db dump
run: curl -sL https://static.crates.io/db-dump.tar.gz | ./target/release/crate-names build --out out
- name: publish to the rolling `artifacts` release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create artifacts --notes "rolling release; assets are replaced daily by the publish workflow" || true
gh release upload artifacts out/names-v2.tsv.zst out/descriptions-v2.tsv.zst out/facets-v1.tsv.zst --clobber