Skip to content

Commit faabdf5

Browse files
committed
prepare publishing
1 parent c63d551 commit faabdf5

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/bump_version.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

.github/workflows/rust.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,15 @@ jobs:
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 }}

0 commit comments

Comments
 (0)