Skip to content

docs: fix README - resolve merge conflicts, fix brand to Revenue Hold… #2

docs: fix README - resolve merge conflicts, fix brand to Revenue Hold…

docs: fix README - resolve merge conflicts, fix brand to Revenue Hold… #2

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
workflow_dispatch:
inputs:
pypi_target:
description: 'PyPI target (pypi or testpypi)'
default: 'pypi'
type: choice
options:
- pypi
- testpypi
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Lint with ruff
run: pip install ruff && ruff check src/ --target-version py310
- name: Build package
run: python -m build
- name: Check package
run: twine check dist/*
- name: Publish to TestPyPI
if: ${{ inputs.pypi_target == 'testpypi' }}
<<<<<<< HEAD

Check failure on line 49 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish to PyPI
if: ${{ inputs.pypi_target == 'pypi' || github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@release/v1
=======
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --repository testpypi dist/* --verbose
>>>>>>> 6a1c694d4432dfdcf5c2689e7113670a0a2c2e6b