File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://github.com/LeadingEDJE/stackmanager/blob/master/.github/workflows/release.yml
2
+
3
+ name : Release to PyPI
4
+
5
+ on :
6
+ release :
7
+ types : [released]
8
+
9
+ jobs :
10
+ release :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python 3.8
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : 3.8
20
+ - name : Install Tools
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel twine
24
+ - name : Package and Upload
25
+ env :
26
+ COMMIT_VERSION : ${{ github.event.release.tag_name }}
27
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
28
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
+ run : |
30
+ python setup.py sdist bdist_wheel
31
+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments