Unverified Commit 2fcc6486 authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Distribute source tarball and wheel to PyPI (#508)

* Distribute source and weel

* trigger

* fix
parent f2bf5fb1
...@@ -28,5 +28,5 @@ jobs: ...@@ -28,5 +28,5 @@ jobs:
- name: Deploy - name: Deploy
run: | run: |
rm -rf dist/* rm -rf dist/*
python setup.py bdist bdist_wheel python setup.py sdist bdist_wheel
twine upload -u zasdfgbnm-bot -p ${{secrets.zasdfgbnm_bot_pypi_password}} dist/* twine upload -u zasdfgbnm-bot -p ${{secrets.zasdfgbnm_bot_pypi_password}} dist/*
...@@ -29,8 +29,7 @@ jobs: ...@@ -29,8 +29,7 @@ jobs:
pip install twine wheel pip install twine wheel
- name: Deploy - name: Deploy
run: | run: |
[ ! -z "$GITHUB_HEAD_REF" ] && exit
rm -rf dist/* rm -rf dist/*
git tag $(date +'v%Y.%m.%d.%H.%M.%S') git tag $(date +'v%Y.%m.%d.%H.%M.%S')
python setup.py bdist bdist_wheel python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ -u zasdfgbnm-bot -p ${{secrets.zasdfgbnm_bot_test_pypi_password}} dist/* twine upload --repository-url https://test.pypi.org/legacy/ -u zasdfgbnm-bot -p ${{secrets.zasdfgbnm_bot_test_pypi_password}} dist/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment