Skip to content

Commit

Permalink
Add a workflow to deploy a PyPI release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Sep 22, 2023
1 parent c5bafa5 commit e1d5a22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy release
on:
push:
tags:
- '*'
jobs:
pypi:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -U build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 0 additions & 1 deletion .tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ hatch build
git add */__init__.py
git commit -m "v$1"
git tag -a -m "" "v$1"
hatch publish
git push origin master --tags

0 comments on commit e1d5a22

Please sign in to comment.