Skip to content

Build and Publish Test Wheels #4

Build and Publish Test Wheels

Build and Publish Test Wheels #4

name: Build and Publish Wheels Test
on:
workflow_dispatch:
inputs:
tag:
description: 'Version tag to use (e.g. v1.2.3)'
required: true
default: ''
jobs:
build_wheels:
name: Build Universal Wheel
runs-on: windows-2019
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools toml
- name: Build extensions using Docker
run: |
python setup.py build_ext
- name: Build universal wheel
run: |
python setup.py bdist_wheel
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/*.whl
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_TEST_API_TOKEN }}