-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (29 loc) · 839 Bytes
/
Copy pathtestrelease.yml
File metadata and controls
33 lines (29 loc) · 839 Bytes
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
name: TestPyPi Publisher
on:
workflow_dispatch:
jobs:
pypi-publisher:
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/pypsbuilder
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/