-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 875 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: read
jobs:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: release
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: minor
- uses: actions/checkout@v2
with:
ref: ${{ steps.release.outputs.tag_name }}
- name: deploy
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
VERSION_NUMBER: ${{ steps.release.outputs.tag_name }}
run: |
echo "Deploying ${{ steps.release.outputs.tag_name }} to PyPI"
pip install twine
python setup.py sdist
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD