mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-01 06:48:29 -04:00
c1e7498e84
Signed-off-by: a30054014 <aipeng3@huawei.com>
25 lines
767 B
YAML
25 lines
767 B
YAML
# This is triggered after the Release workflow successfully completes its run
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Release
|
|
types:
|
|
- completed
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
jobs:
|
|
cargo-publish:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
- 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}
|