Skip to content

Publish wheels to pypi #3

Publish wheels to pypi

Publish wheels to pypi #3

Workflow file for this run

name: Publish wheels to pypi
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
mv unmerged/*/*.tar.gz dist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1