Skip to content

Commit 1542f05

Browse files
committed
Automatic publishing?
1 parent 60f31cd commit 1542f05

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on: [workflow_dispatch]
4+
5+
env:
6+
UV_SYSTEM_PYTHON: 1
7+
UV_PYTHON_DOWNLOADS: never
8+
UV_PYTHON_PREFERENCE: only-system
9+
10+
jobs:
11+
publish:
12+
name: Publish to PyPI
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/p/cconf
17+
permissions:
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
- name: Set up uv
24+
uses: astral-sh/setup-uv@v3
25+
- name: Build
26+
run: uv build
27+
- name: Publish
28+
run: uv publish

0 commit comments

Comments
 (0)