-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.01 KB
/
build-and-upload.yaml
File metadata and controls
31 lines (27 loc) · 1.01 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
---
# You may or may not want to use this workflow depending on what you're
# developing, how mature it is and whether it needs to be published to
# a private repository or if it's suitable to publish on TestPyPI/PyPI.
# -> Please activate/change/remove this workflow as needed.
name: publish on TestPyPI
on:
release:
types: [published]
workflow_dispatch:
# It is strongly recommended to use a trusted publisher when publishing to
# TestPyPI or PyPI. This is an OIDC based workflow and avoids the need to
# configure long-running, shared credentials. For a detailed description
# please refer to https://docs.pypi.org/trusted-publishers/
jobs:
build-and-upload:
name: build package and upload to TestPyPI
runs-on: ubuntu-latest
environment: publish-to-testpypi
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to PyPI
run: pdm publish --repository testpypi