Skip to content

Publish on crates.io #3

Publish on crates.io

Publish on crates.io #3

Workflow file for this run

# To trigger this:
# - go to Actions > Publish
# - click the Run Workflow dropdown in the top-right
name: Publish
on: workflow_dispatch
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
jobs:
cargo-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Publish bindgen (lib)
run: cargo publish --package bindgen --token ${CARGO_REGISTRY_TOKEN}
- name: Publish bindgen-cli
run: cargo publish --package bindgen-cli --token ${CARGO_REGISTRY_TOKEN}