Skip to content

Commit 368f12e

Browse files
committed
Added deployment script
1 parent 7efe7b5 commit 368f12e

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy_docs:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check-out
15+
uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.9
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install flake8 pytest
24+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
- name: Build distribution
26+
run: python setup.py sdist bdist_wheel
27+
- name: Deploy
28+
run: twine upload -r pypi dist/*
29+
env:
30+
TWINE_USERNAME: ${{ secrets.DEPLOY_USER }}
31+
TWINE_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}

.github/workflows/deploy_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
id: extract_branch
1919
- name: Check-out
2020
uses: actions/checkout@v2
21-
- name: Set up Python 3.9
21+
- name: Set up Python
2222
uses: actions/setup-python@v2
2323
with:
2424
python-version: 3.9

0 commit comments

Comments
 (0)