File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PyPi Release
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ # based on https://github.com/pypa/gh-action-pypi-publish
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - uses : actions/setup-python@v2
15
+ with :
16
+ python-version : 3.8
17
+
18
+ - name : Install dependencies
19
+ run : >-
20
+ python -m pip install --user --upgrade setuptools wheel
21
+ - name : Convert dependencies
22
+ run : >-
23
+ sed -i 's/==/>=/g' setup.py; cat setup.py
24
+ - name : Build
25
+ run : >-
26
+ python setup.py sdist bdist_wheel
27
+ - name : Publish distribution 📦 to PyPI
28
+ if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
29
+ uses : pypa/gh-action-pypi-publish@master
30
+ with :
31
+ user : __token__
32
+ password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments