Skip to content

Add GitHub Actions workflow for publishing to PyPI #1

Add GitHub Actions workflow for publishing to PyPI

Add GitHub Actions workflow for publishing to PyPI #1

name: Publish to PyPI\n\non: release:\n types: [created]\n\njobs:\n publish:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout code\n uses: actions/checkout@v2\n - name: Set up Python\n uses: actions/setup-python@v2\n with:\n python-version: '3.x'\n - name: Install dependencies\n run: |\n python -m pip install --upgrade pip\n pip install twine setuptools wheel\n - name: Build the package\n run: |\n python setup.py sdist bdist_wheel\n - name: Publish to PyPI\n env:\n TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}\n TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}\n run: |\n twine upload dist/*\n

Check failure on line 1 in .github/workflows/publish-to-pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-to-pypi.yml

Invalid workflow file

You have an error in your yaml syntax