Skip to content

deps(dev): update responses requirement from >=0.24.0 to >=0.26.0 #3

deps(dev): update responses requirement from >=0.24.0 to >=0.26.0

deps(dev): update responses requirement from >=0.24.0 to >=0.26.0 #3

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: 'testpypi'
type: choice
options:
- pypi
- testpypi
jobs:

Check failure on line 16 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 16
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build deps
run: |
pip install build twine
- name: Build package
run: |
python -m build
- name: Publish to PyPI
if: ${{ inputs.pypi_target != 'testpypi' || github.event_name == 'release' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/* --verbose
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish to TestPyPI
if: ${{ inputs.pypi_target == 'testpypi' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --repository testpypi dist/* --verbose