Skip to content

Create python-publish.yml #1

Create python-publish.yml

Create python-publish.yml #1

name: Upload Python Package
on:
pull_request:
permissions:
contents: read
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Build release distributions
run: |
pip3 install setuptools_rust
python3 setup.py build test
- name: Publish to Test PyPI
run: |

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

View workflow run for this annotation

GitHub Actions / Upload Python Package

Invalid workflow file

The workflow is not valid. .github/workflows/python-publish.yml (Line: 26, Col: 14): Unrecognized named-value: 'PASS'. Located at position 1 within expression: PASS .github/workflows/python-publish.yml (Line: 32, Col: 14): Unrecognized named-value: 'PASS'. Located at position 1 within expression: PASS
python3 setup.py sdist bdist_wheel &> package_setup.log
curl --connect-timeout 10 -kI https://test.pypi.org
twine upload -u ${{ secrets.USER }} -p ${{ PASS }} -r testpypi 'dist/*'
- name: Publish to PyPI
run: |
python3 setup.py sdist bdist_wheel &> package_setup.log
curl --connect-timeout 10 -kI https://test.pypi.org
twine upload -u ${{ secrets.USER }} -p ${{ PASS }} 'dist/*'