-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 1.03 KB
/
release.yml
File metadata and controls
40 lines (33 loc) · 1.03 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
name: Publish to PyPI
on:
release:
types: [published]
workflow_dispatch: # allows manual runs from the Actions tab
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Build package
run: uv build tsapython # project lives in the tsapython/ subdirectory
- name: Store distributions
uses: actions/upload-artifact@v4
with:
name: dist
path: tsapython/dist/ # uv writes dist/ inside the project dir
publish:
needs: build
runs-on: ubuntu-latest
environment: pypi # must match the environment in your PyPI publisher config
permissions:
id-token: write # REQUIRED for trusted publishing (OIDC)
steps:
- name: Download distributions
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1