Skip to content

Badges

Badges #20

Workflow file for this run

name: build
on:
push:
branches: [ main ]
tags: [ "v*" ]
pull_request:
jobs:
ci:
uses: ./.github/workflows/emulator-test.yml
publish:
needs: ci
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build
run: |
python -m pip install -U pip build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}