Skip to content

chore: bump version to 2.1.2 #19

chore: bump version to 2.1.2

chore: bump version to 2.1.2 #19

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Build artifacts
run: |
pipx run build
- name: Test Build
run: |
python3 -m venv fresh_env
. fresh_env/bin/activate
pip install dist/*.whl
output=$(echo '# hello world' | fresh_env/bin/marko | xargs)
[[ $output == "<h1>hello world</h1>" ]] || false
- name: Upload to Pypi
run: |
pip install twine
twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*