PyPI Publish: Elizabeth #28
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: "PyPI Publish: Elizabeth" | |
on: | |
workflow_dispatch: {} | |
push: | |
tags: | |
- "elizabeth-v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Ensure Python Runtime | |
with: | |
python-version: "3.x" | |
architecture: "x64" | |
- name: Ensure PDM & twine | |
run: | | |
python3 -m pip install pdm=="2.13.2" twine pdm-mina "mina-build<0.6" | |
- name: Build Package | |
run: | | |
export MINA_BUILD_TARGET=elizabeth && pdm mina build elizabeth --no-isolation | |
- name: Publish to PyPI | |
run: | | |
twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }} |