Publish wheels to testpypi #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish wheels to testpypi | |
on: | |
workflow_dispatch: | |
inputs: | |
workflow_id: | |
description: "The workflow ID to pull wheels from" | |
required: true | |
type: string | |
jobs: | |
publish_test: | |
name: Publish Python 🐍 distribution 📦 to TestPyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: testpypi | |
url: https://test.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: dist | |
merge-multiple: true | |
run_id: ${{ github.event.inputs.workflow_id }} | |
workflow: build_wheels.yml | |
- name: Publish distribution 📦 to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |