Skip to content

Commit 95f5520

Browse files
adding back in deploy workflow
1 parent d332ea6 commit 95f5520

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,29 @@ jobs:
6565

6666
- name: Coverage
6767
uses: codecov/codecov-action@v1
68+
69+
deploy:
70+
# this will run when you have tagged a commit, starting with "v*"
71+
# and requires that you have put your twine API key in your
72+
# github secrets (see readme for details)
73+
needs: [test]
74+
runs-on: ubuntu-latest
75+
if: contains(github.ref, 'tags')
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Set up Python
79+
uses: actions/setup-python@v2
80+
with:
81+
python-version: "3.x"
82+
- name: Install dependencies
83+
run: |
84+
python -m pip install --upgrade pip
85+
pip install -U setuptools setuptools_scm wheel twine
86+
- name: Build and publish
87+
env:
88+
TWINE_USERNAME: __token__
89+
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
90+
run: |
91+
git tag
92+
python setup.py sdist bdist_wheel
93+
twine upload dist/*

0 commit comments

Comments
 (0)