Skip to content

Commit

Permalink
Fix CI/CD for pip release
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Nov 11, 2024
1 parent 0872692 commit 47fa3ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/node-hub-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,19 @@ jobs:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_PASS }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
# List of ignored modules
ignored_folders=("dora-parler")
for dir in node-hub/*/ ; do
# Get the base name of the directory (without the path)
base_dir=$(basename "$dir")
if [[ " ${ignored_folders[@]} " =~ " ${base_dir} " ]]; then
echo "Skipping $base_dir as there is a hf model fetching issue..."
continue
fi
if [ -d "$dir" ]; then
if [[ -f "$dir/Cargo.toml" && -f "$dir/pyproject.toml" ]]; then
echo "Publishing $dir using maturin..."
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/pip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ jobs:
runs-on: ubuntu-22.04
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
needs: [linux, musllinux, musleabi, windows, macos, sdist]
strategy:
matrix:
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
Expand All @@ -246,4 +253,4 @@ jobs:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASS }}
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
args: --non-interactive --skip-existing ${{ matrix.repository.name }}-*/*

0 comments on commit 47fa3ab

Please sign in to comment.