Skip to content

Commit 5e739af

Browse files
committed
Set up automatic publishing to PyPI
1 parent 29a4146 commit 5e739af

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
@@ -19,3 +19,20 @@ jobs:
1919
python-version: ${{ matrix.python }}
2020
- run: pip install Markdown
2121
- run: python ./test.py
22+
pypi-publish:
23+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
24+
runs-on: ubuntu-latest
25+
environment:
26+
name: pypi
27+
url: https://pypi.org/p/python-markdown-math
28+
permissions:
29+
id-token: write
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.13'
35+
- run: pip install build
36+
- run: python -m build
37+
- if: success()
38+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)