File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ class _PkgPaths(NamedTuple):
3232 ],
3333 path = REPO_ROOT / "crates" / "rf24-rs" ,
3434 ),
35+ "rf24ble-rs" : _PkgPaths (
36+ include = ["crates/rf24ble-rs/**" ],
37+ exclude = [
38+ ".github/**" ,
39+ "docs/**" ,
40+ "examples/python/**" ,
41+ "examples/node/**" ,
42+ "bindings/**" ,
43+ ".config/*" ,
44+ ],
45+ path = REPO_ROOT / "crates" / "rf24ble-rs" ,
46+ ),
3547 "rf24-py" : _PkgPaths (
3648 include = [
3749 "crates/**/*.rs" ,
Original file line number Diff line number Diff line change 6666 - uses : actions/checkout@v4
6767 with :
6868 persist-credentials : false
69+ - name : Get pkg from tag
70+ id : pkg
71+ shell : bash
72+ run : |
73+ tag=${{ github.ref_name }}
74+ pkg=$(echo "$tag" | sed -E 's;([a-z0-9-]+)/.*;\1;')
75+ echo "name=$pkg" >> "$GITHUB_OUTPUT"
6976 - name : Install Rust
7077 run : rustup update stable --no-self-update
71- - run : cargo publish -p rf24-rs
78+ - run : cargo publish -p ${{ steps.pkg.outputs.name }}
7279 env :
7380 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments