Skip to content

add workflow_dispatch to version #2

add workflow_dispatch to version

add workflow_dispatch to version #2

# This workflow will upload a Python Package using Twine
# Setup PYPI_API_TOKEN
name: Upload Python Package
on:
workflow_dispatch
release:

Check failure on line 8 in .github/workflows/python-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}