Skip to content

Update pypi_publish.yml #7

Update pypi_publish.yml

Update pypi_publish.yml #7

Workflow file for this run

on:
# Trigger on release creation
release:
types: [created]
# Allow manual triggering for testing
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository code
- name: Check out code
uses: actions/checkout@v2
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
# Step 3: Upgrade pip and install dependencies for building and publishing

Check failure on line 24 in .github/workflows/pypi_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi_publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Step 4: Build and publish to PyPI
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*