Skip to content

Commit 1e58665

Browse files
committed
Add a workflow to deploy a PyPI release on tag
1 parent 04cdfc9 commit 1e58665

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
pypi:
8+
permissions:
9+
id-token: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.11'
17+
- name: Install dependencies
18+
run: pip install -U build
19+
- name: Build package
20+
run: python -m build
21+
- name: Publish to PyPI
22+
uses: pypa/gh-action-pypi-publish@release/v1

.tools/release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ hatch build
1111
git add */__init__.py
1212
git commit -m "v$1"
1313
git tag -a -m "" "v$1"
14-
hatch publish
1514
git push origin master --tags

0 commit comments

Comments
 (0)