Skip to content

Commit

Permalink
Fix CD pypi publish name conflict for cli and node
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Nov 4, 2024
1 parent 07b5031 commit 24111e9
Showing 1 changed file with 17 additions and 45 deletions.
62 changes: 17 additions & 45 deletions .github/workflows/pip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
# target: ppc64le
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -63,16 +65,8 @@ jobs:
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
name: ${{ matrix.repository.name }}-linux-${{ matrix.platform.target }}
path: ${{ matrix.repository.path }}/dist
- name: Upload to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.repository.path }}/dist/*
tag: ${{ github.ref }}
file_glob: true

musllinux:
runs-on: ${{ matrix.platform.runner }}
Expand All @@ -87,7 +81,9 @@ jobs:
target: aarch64
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -105,16 +101,8 @@ jobs:
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
name: wheels-musllinux-${{ matrix.platform.target }}
name: ${{ matrix.repository.name }}-musllinux-${{ matrix.platform.target }}
path: ${{ matrix.repository.path }}/dist
- name: Upload to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.repository.path }}/dist/*
tag: ${{ github.ref }}
file_glob: true

musleabi:
runs-on: ubuntu-22.04
Expand All @@ -129,7 +117,9 @@ jobs:
]
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
container:
image: docker://messense/rust-musl-cross:${{ matrix.platform.image_tag }}
env:
Expand All @@ -151,16 +141,8 @@ jobs:
if: github.event_name == 'release'
uses: actions/upload-artifact@v3
with:
name: wheels-musllinux-${{ matrix.platform.target }}
name: ${{ matrix.repository.name }}-musllinux-${{ matrix.platform.target }}
path: ${{ matrix.repository.path }}/dist
- name: Upload to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.repository.path }}/dist/*
tag: ${{ github.ref }}
file_glob: true

windows:
runs-on: ${{ matrix.platform.runner }}
Expand All @@ -171,7 +153,9 @@ jobs:
target: x64
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -189,16 +173,8 @@ jobs:
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
name: wheels-windows-${{ matrix.platform.target }}
name: ${{ matrix.repository.name }}-windows-${{ matrix.platform.target }}
path: ${{ matrix.repository.path }}/dist
- name: Upload to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.repository.path }}/dist/*
tag: ${{ github.ref }}
file_glob: true

macos:
runs-on: ${{ matrix.platform.runner }}
Expand All @@ -211,7 +187,9 @@ jobs:
target: aarch64
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -228,24 +206,18 @@ jobs:
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
name: ${{ matrix.repository.name }}-macos-${{ matrix.platform.target }}
path: ${{ matrix.repository.path }}/dist
- name: Upload to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.repository.path }}/dist/*
tag: ${{ github.ref }}
file_glob: true

sdist:
runs-on: ubuntu-22.04
strategy:
matrix:
repository:
- path: apis/python/node
name: dora-node-api
- path: binaries/cli
name: dora-rs-cli
steps:
- uses: actions/checkout@v3
- name: Build sdist
Expand Down

0 comments on commit 24111e9

Please sign in to comment.