| @@ -1,11 +1,18 @@ | |||||
| name: release | name: release | ||||
| on: push | |||||
| on: | |||||
| push: | |||||
| tags: | |||||
| - 'v**' | |||||
| concurrency: | |||||
| group: ${{ github.workflow }}-${{ github.ref }} | |||||
| cancel-in-progress: true | |||||
| jobs: | jobs: | ||||
| build-n-publish: | build-n-publish: | ||||
| runs-on: ubuntu-20.04 | runs-on: ubuntu-20.04 | ||||
| if: startsWith(github.event.ref, 'refs/tags') | |||||
| #if: startsWith(github.event.ref, 'refs/tags') | |||||
| steps: | steps: | ||||
| - uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
| - name: Set up Python 3.7 | - name: Set up Python 3.7 | ||||
| @@ -18,5 +25,6 @@ jobs: | |||||
| run: python setup.py sdist bdist_wheel | run: python setup.py sdist bdist_wheel | ||||
| - name: Publish package to PyPI | - name: Publish package to PyPI | ||||
| run: | | run: | | ||||
| pip install twine | |||||
| twine upload package/dist/* --skip-existing -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} | |||||
| echo "I got run" | |||||
| #pip install twine | |||||
| #twine upload package/dist/* --skip-existing -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} | |||||