Skip to content

Build & Publish to PyPI #12

Build & Publish to PyPI

Build & Publish to PyPI #12

Workflow file for this run

name: Build & Publish to PyPI
on:
push:
tags: [ 'v*' ] # e.g. v0.2.2
release:
types: [ published ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/haveno-client/
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tools
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build sdist & wheel
run: |
python -m build
- name: Publish to PyPI (token auth)
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
packages-dir: dist
password: ${{ secrets.PYPI_TOKEN }} # create this repo secret with a real PyPI token (pypi-...)
skip-existing: true
verify-metadata: true