-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (44 loc) · 1.1 KB
/
wheels.yml
File metadata and controls
52 lines (44 loc) · 1.1 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
42
43
44
45
46
47
48
49
50
51
52
name: Publish Python release
on:
push:
branches: [test-publish]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
version: "0.8.15"
- name: Build
run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
runs-on: ubuntu-24.04
environment: release
needs: [build]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v7.0.0
with:
name: dist
path: dist
- name: Publish to TestPyPI
if: github.event_name == 'push' && github.ref_name == 'test-publish'
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
- name: Publish to PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@v1.13.0