[CI][Update] Update CI Actions for releasing a brand new release package. #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Package | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9'] | |
architecture: [ 'x64' ] | |
# For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily only package executable files for Python 3.8. | |
# In the future, we will need to extend support to cover Python 3.8 through Python 3.10. | |
steps: | |
# Checkout the latest branch of Paddle2ONNX. | |
- name: Checkout Paddle2ONNX | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build on manylinux2014_x86_64 | |
uses: docker://quay.io/pypa/manylinux2014_x86_64:latest | |
with: | |
entrypoint: bash | |
args: .github/workflows/scripts/entrypoint.sh ${{ matrix.python-version }} manylinux2014_x86_64 | |
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
name: wheels | |
path: dist | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
with: | |
user: __token__ | |
password: ${{ secrets.ZHENG_BICHENG_PYPI_TOKEN }} | |
# # Do Test | |
# - name: Run Test | |
# working-directory: ./paddle2onnx/tests | |
# run: | | |
# bash run.sh python |