chore: bump version to 2.1.0 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |