Skip to content

Publish on PyPi

Publish on PyPi #4

# Publish and test releases on Test-PyPI and PyPI.
name: Publish on PyPi
on:
workflow_dispatch:
inputs:
tag_to_release:
description: 'Enter tag to release (example: v1.5.5). A tag with the same name must exist in the repository.'
type: string
required: true
only_testpypi_release:
description: 'If checked, the release on "real" pypi will be skipped.'
type: boolean
default: false
jobs:
publish_on_pypi:
uses: MannLabs/alphashared/.github/workflows/publish_on_pypi.yml@v1
with:
# see the documentation of the workflow for more information on the parameters
package_name: directlfq
tag_to_release: ${{ inputs.tag_to_release }}
python_version: 3.9
only_testpypi_release: only_testpypi_release

Check failure on line 25 in .github/workflows/publish_on_pypi.yml

View workflow run for this annotation

GitHub Actions / Publish on PyPi

Invalid workflow file

The workflow is not valid. .github/workflows/publish_on_pypi.yml (Line: 25, Col: 30): Unexpected value 'only_testpypi_release'
secrets:
test_pypi_api_token: ${{ secrets.TEST_PYPI_API_TOKEN }}
pypi_api_token: ${{ secrets.PYPI_API_TOKEN }}