We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b162db2 commit 9c06d5bCopy full SHA for 9c06d5b
1 file changed
.github/workflows/deploy.yml
@@ -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
33
+ user: __token__
34
+ password: ${{ secrets.pypi_readit }}
0 commit comments