Spaces:
Sleeping
Sleeping
Commit
·
2e78f04
1
Parent(s):
bc55a48
Remove git workflow
Browse files
.github/workflows/python-publish.yml
DELETED
|
@@ -1,30 +0,0 @@
|
|
| 1 |
-
# This workflows will upload a Python Package using Twine when a release is created
|
| 2 |
-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
| 3 |
-
|
| 4 |
-
name: Upload Python Package
|
| 5 |
-
|
| 6 |
-
on:
|
| 7 |
-
push:
|
| 8 |
-
branches: master
|
| 9 |
-
|
| 10 |
-
jobs:
|
| 11 |
-
deploy:
|
| 12 |
-
|
| 13 |
-
runs-on: ubuntu-latest
|
| 14 |
-
|
| 15 |
-
steps:
|
| 16 |
-
- uses: actions/checkout@v2
|
| 17 |
-
- name: Set up Python
|
| 18 |
-
uses: actions/setup-python@v2
|
| 19 |
-
with:
|
| 20 |
-
python-version: '3.x'
|
| 21 |
-
- name: Build and publish
|
| 22 |
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
| 23 |
-
env:
|
| 24 |
-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
| 25 |
-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
| 26 |
-
run: |
|
| 27 |
-
python -m pip install --upgrade pip
|
| 28 |
-
pip install setuptools wheel twine
|
| 29 |
-
python setup.py sdist bdist_wheel
|
| 30 |
-
twine upload dist/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|