Skip to content

remove csrf auth method, because it doesnt work #72

remove csrf auth method, because it doesnt work

remove csrf auth method, because it doesnt work #72

---
name: PyPI - Build and publish
on: push
jobs:
build-n-publish:
name: PyPI - Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Build a binary wheel and a source tarball
run: python setup.py sdist
- name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true