-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (34 loc) · 1.04 KB
/
upload_testpypi.yml
File metadata and controls
41 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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@v6
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 TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/