Skip to content

Commit 58999ec

Browse files
committed
Add release GitHub Action
1 parent e3340df commit 58999ec

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: PyPI
3+
on: [ push ]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: astral-sh/setup-uv@v5
10+
- run: uv build
11+
- uses: actions/upload-artifact@v4
12+
with:
13+
name: Packages
14+
path: dist
15+
test-pypi:
16+
runs-on: ubuntu-latest
17+
needs: build
18+
environment:
19+
name: test-pypi
20+
url: https://test.pypi.org/p/pywmspro
21+
permissions:
22+
id-token: write
23+
steps:
24+
- uses: actions/download-artifact@v4
25+
with:
26+
name: Packages
27+
path: dist
28+
- uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
repository-url: https://test.pypi.org/legacy/
31+
print-hash: true
32+
...

0 commit comments

Comments
 (0)