Skip to content

Commit 9c06d5b

Browse files
committed
Pypi deploy job
1 parent b162db2 commit 9c06d5b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish readit to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build-and-publish:
12+
name: Build and publish readit distributions to PyPI
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout to master
16+
uses: actions/checkout@master
17+
18+
- name: Setup python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.7'
22+
architecture: 'x64'
23+
24+
- name: Build Package
25+
run: |
26+
python -m pip install --upgrade setuptools wheel
27+
python setup.py sdist bdist_wheel
28+
29+
- name: Deploy to PyPi readit
30+
if: startsWith(github.event.ref, 'refs/tags')
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
user: __token__
34+
password: ${{ secrets.pypi_readit }}

0 commit comments

Comments
 (0)