Skip to content

fix

fix #3

Workflow file for this run

name: Build
# on:
# push:
# tags:
# - '*' # Will run when any tag is pushed
on: [push, pull_request]
jobs:
build_wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-12, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.2
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: cp310-* cp311-*
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*.whl
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: build_wheels
environment:
name: publish
url: https://pypi.org/p/revolve2-robohat
permissions:
id-token: write
steps:
- name: Download dist artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1