Skip to content

Commit 085968b

Browse files
committed
add .github/workflows/release.yml
1 parent 197a843 commit 085968b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# based on https://github.com/carderne/postmodern-python/blob/main/.github/workflows/release.yml
2+
3+
name: release
4+
on:
5+
release:
6+
types: [published]
7+
jobs:
8+
publish:
9+
environment: release # needed for PyPI OIDC
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.12"
18+
- run: pip install build && python -m build # build
19+
- uses: pypa/gh-action-pypi-publish@release/v1 # publish

0 commit comments

Comments
 (0)