Skip to content

Commit 9c0876a

Browse files
authored
fix(ci): repair publish workflows (#39)
## Summary - build Python wheels with `maturin build` to produce manylinux-tagged artifacts - publish `lance-context-core` and `lance-context` in separate steps to avoid re-publishing the core crate - add a short wait to let crates.io index update before publishing the wrapper crate ## Testing - Not run (CI workflow changes only)
1 parent ec61731 commit 9c0876a

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Build distributions
6060
working-directory: python
6161
run: |
62-
uv build --sdist --wheel --out-dir dist
62+
maturin build --release --out dist --sdist
6363
6464
- name: Upload distributions
6565
uses: actions/upload-artifact@v4

.github/workflows/rust-publish.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727

2828
jobs:
2929
publish:
30+
if: github.event_name != 'pull_request'
3031
runs-on: ubuntu-24.04
3132
timeout-minutes: 60
3233
steps:
@@ -46,9 +47,25 @@ jobs:
4647

4748
- uses: rui314/setup-mold@v1
4849

49-
- uses: katyo/publish-crates@v2
50+
- name: Publish lance-context-core
51+
uses: katyo/publish-crates@v2
5052
with:
5153
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
52-
args: "-p lance-context-core -p lance-context --all-features"
53-
path: .
54+
args: "--all-features"
55+
path: crates/lance-context-core
56+
dry-run: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'dry_run') }}
57+
58+
- name: Wait for crates.io index
59+
if: >
60+
(github.event_name == 'release' && github.event.action == 'released') ||
61+
(github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'release')
62+
run: |
63+
sleep 30
64+
65+
- name: Publish lance-context
66+
uses: katyo/publish-crates@v2
67+
with:
68+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
69+
args: "--all-features"
70+
path: crates/lance-context
5471
dry-run: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.mode == 'dry_run') }}

0 commit comments

Comments
 (0)