mirror of https://github.com/tracel-ai/burn.git
28 lines
621 B
YAML
28 lines
621 B
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
crate:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
CRATES_IO_API_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
publish-crate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: install rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: compile publish binary
|
|
run: rustc scripts/publish.rs --crate-type bin --out-dir scripts
|
|
|
|
- name: publish to crates.io
|
|
run: ./scripts/publish ${{ inputs.crate }}
|
|
env:
|
|
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
|