-
Notifications
You must be signed in to change notification settings - Fork 45
39 lines (36 loc) · 1.05 KB
/
publish.yml
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
name: Publish artifacts
on:
release:
### NOTE:
###
### There are multiple types of release trigger events.
### Ref: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
###
### Given that GitHub allows the creation of 'release'
### and 'pre-release' publications to differentiate between
### production and beta releases, the trigger type to use,
### as it wraps them both, must be 'published'.
types: [published]
jobs:
package:
needs: []
runs-on: ubuntu-latest
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: "Build Python package"
run: |
pipx run build --installer uv
- name: "Publish Python package"
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verify-metadata: true
print-hash: true