Skip to content

Modernize build system to use pyproject.toml and build wheels #1

Modernize build system to use pyproject.toml and build wheels

Modernize build system to use pyproject.toml and build wheels #1

Workflow file for this run

name: Publish wheels to pypi
on:
push:
branches:
- main
pull_request:
# on:
# workflow_dispatch:
# inputs:
# workflow_id:
# description: "The workflow ID to pull wheels from"
# required: true
# type: string
jobs:
publish:
name: Publish Python 🐍 distribution 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/charm4py
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: dawidd6/action-download-artifact@v2
# with:
# # download all the wheels
# path: unmerged
# run_id: ${{ github.event.inputs.workflow_id }}
# workflow: build_wheels.yml
# - name: Merge files to dist
# run: |
# mkdir dist
# mv unmerged/*/*.whl dist
# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1