Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' && '' || '--no-sdist' }} --interpreter=python${{ !startsWith(matrix.os, 'windows') && matrix.python-version || '' }}
args: --username=__token__ --no-sdist --skip-existing --interpreter=python${{ matrix.python-version }}
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
if: matrix.os != 'macos-latest'
Expand All @@ -52,33 +52,39 @@ jobs:
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist --skip-existing
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish macOS (arm64) Package
if: matrix.os == 'macos-latest'
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist --skip-existing
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish Linux (arm64) Package
if: matrix.os == 'ubuntu-latest'
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-unknown-linux-gnu --no-sdist
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-unknown-linux-gnu --no-sdist --skip-existing
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
dist-source:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Distribute Source
- name: Build Source Distribution
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Publish Source Distribution
uses: PyO3/maturin-action@v1
with:
command: upload
args: --username=__token__ --non-interactive --skip-existing dist/*.tar.gz
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
Loading