Skip to content

Set up automatic publishing to PyPI #8

Set up automatic publishing to PyPI

Set up automatic publishing to PyPI #8

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- pypy3.10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install Markdown
- run: python ./test.py
pypi-publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-markdown-math
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install build
- run: python -m build
- if: success()
uses: pypa/gh-action-pypi-publish@release/v1