Skip to content

Commit

Permalink
feat(python): support mac os pypi crates2 (#11847)
Browse files Browse the repository at this point in the history
* feat(python): support mac os pypi crates2

* feat(python): support mac os pypi crates2
  • Loading branch information
sundy-li authored Jun 25, 2023
1 parent a830c9d commit 79ee007
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:

jobs:
builds:
name: build_${{ matrix.target.name }}
name: build-${{ matrix.target.name }}
runs-on: ${{ matrix.target.runs }}
strategy:
matrix:
Expand Down Expand Up @@ -127,18 +127,21 @@ jobs:
pytest -v tests/*
- name: Upload artifact
if: github.event_name == 'pull_request'
working-directory: src/bendpy
uses: ./.github/actions/artifact_upload
with:
sha: ${{ github.sha }}
target: ${{ matrix.target.name }}
category: python
path: src/bendpy/dist
name: dist
path: dist/*.whl

- name: Publish package to PyPI
if: github.event_name != 'pull_request'
uses: pypa/gh-action-pypi-publish@release/v1
release:
name: Publish in PyPI
needs: [build-x86_64-unknown-linux-gnu, build-aarch64-unknown-linux-gnu, build-x86_64-apple-darwin, build-aarch64-apple-darwin]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Publish to PyPI
# if: github.event_name != 'pull_request'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: src/bendpy/dist/
password: ${{ secrets.pypi_password }}
skip-existing: true

1 comment on commit 79ee007

@vercel
Copy link

@vercel vercel bot commented on 79ee007 Jun 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

databend – ./

databend-databend.vercel.app
databend.vercel.app
databend-git-main-databend.vercel.app
databend.rs

Please sign in to comment.