Skip to content

Commit

Permalink
set up publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Linlang Lv (iSoftStone Information) committed Apr 17, 2024
1 parent 7217c6e commit 0aa6c55
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
deploy_with_bdist_wheel:
runs-on: ${{ matrix.os }}
permissions:
id-token: write
strategy:
matrix:
os: [windows-latest, macos-11]
Expand Down Expand Up @@ -49,15 +51,18 @@ jobs:
pip install numpy
pip install cython
python setup.py bdist_wheel
- name: Set up publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ steps.mint-token.outputs.api-token }}
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
deploy_with_manylinux:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Build wheel on Linux
Expand All @@ -72,10 +77,11 @@ jobs:
python-version: 3.7
- name: Install dependencies
run: |
pip install twine
pip install twine
- name: Set up publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ steps.mint-token.outputs.api-token }}
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/pyqlib-*-manylinux*.whl

0 comments on commit 0aa6c55

Please sign in to comment.