Skip to content

Commit 6983c84

Browse files
committed
Set up automatic publishing to PyPI
1 parent 37e0644 commit 6983c84

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@ jobs:
3838
run: flake8 --max-line-length=88 .
3939
- name: Run mypy
4040
run: mypy --strict --ignore-missing-imports secretstorage/ tests/
41+
pypi-publish:
42+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: pypi
46+
url: https://pypi.org/p/SecretStorage
47+
permissions:
48+
id-token: write
49+
steps:
50+
- uses: actions/checkout@v5
51+
- uses: actions/setup-python@v6
52+
with:
53+
python-version: '3.13'
54+
- run: pip install build
55+
- run: python -m build
56+
- if: success()
57+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)