Skip to content

Add README and other metadata #23

Add README and other metadata

Add README and other metadata #23

name: Build compiled package
on:
workflow_dispatch:
push:
tags:
- "compiled-v*"
branches:
- 'compiled-*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.builds.os }}
strategy:
fail-fast: false
matrix:
builds: [
{os: "macos-latest"},
{os: "windows-latest"},
{os: "ubuntu-latest"}
]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install deps
run: python -m pip install cibuildwheel
- name: Build wheels
run: |
python build.py package
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: builds-${{ matrix.builds.os }}
path: ./build/wheelhouse/*.whl
- name: Create GH release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: ./build/wheelhouse/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish on PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install twine
twine upload --skip-existing ./build/wheelhouse/*