Skip to content

Commit 892cca7

Browse files
committed
add pypi workflow for pushing tags
1 parent 1d2a836 commit 892cca7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tag.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: tag
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
7+
jobs:
8+
pypi:
9+
environment:
10+
name: "test.pypi.org"
11+
url: "https://test.pypi.org/project/lbster"
12+
needs:
13+
- "build"
14+
permissions:
15+
id-token: "write"
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- uses: "actions/download-artifact@v4"
19+
with:
20+
name: "python-package-distributions"
21+
path: "dist/"
22+
- uses: "pypa/gh-action-pypi-publish@release/v1"
23+
with:
24+
user: __token__
25+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
26+
repository-url: "https://test.pypi.org/legacy/"
27+
skip-existing: true
28+
verbose: true

0 commit comments

Comments
 (0)