update publish.yaml

This commit is contained in:
wenmeng.zwm
2022-12-07 00:09:05 +08:00
parent bf2832c451
commit 9c79bab432

View File

@@ -1,11 +1,18 @@
name: release
on: push
on:
push:
tags:
- 'v**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-n-publish:
runs-on: ubuntu-20.04
if: startsWith(github.event.ref, 'refs/tags')
#if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
@@ -18,5 +25,6 @@ jobs:
run: python setup.py sdist bdist_wheel
- name: Publish package to PyPI
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 }}