mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 07:46:53 +08:00
set up publish
This commit is contained in:
18
.github/workflows/python-publish.yml
vendored
18
.github/workflows/python-publish.yml
vendored
@@ -10,6 +10,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy_with_bdist_wheel:
|
deploy_with_bdist_wheel:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macos-11]
|
os: [windows-latest, macos-11]
|
||||||
@@ -49,15 +51,18 @@ jobs:
|
|||||||
pip install numpy
|
pip install numpy
|
||||||
pip install cython
|
pip install cython
|
||||||
python setup.py bdist_wheel
|
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
|
- name: Build and publish
|
||||||
env:
|
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
deploy_with_manylinux:
|
deploy_with_manylinux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build wheel on Linux
|
- name: Build wheel on Linux
|
||||||
@@ -73,9 +78,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
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
|
- name: Build and publish
|
||||||
env:
|
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
twine upload dist/pyqlib-*-manylinux*.whl
|
twine upload dist/pyqlib-*-manylinux*.whl
|
||||||
|
|||||||
Reference in New Issue
Block a user