File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # When a tag is pushed, build packages and upload to PyPI
2+
3+ name : pypi
4+
5+ # Trigger when tags are pushed
6+ on :
7+ push :
8+ tags :
9+ - ' *'
10+
11+ workflow_dispatch :
12+
13+ jobs :
14+ build-and-upload :
15+ name : Upload package to PyPI
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v2
19+ with :
20+ submodules : recursive
21+ - name : Install Python 3
22+ uses : actions/setup-python@v1
23+ with :
24+ python-version : 3.8
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ sudo apt-get install -y libopenblas-dev
29+ pip install -r requirements.txt
30+ pip install wheel
31+ python setup.py sdist bdist_wheel
32+ - name : Upload package to PyPI
33+ uses : pypa/gh-action-pypi-publish@release/v1
34+ with :
35+ user : __token__
36+ password : ${{ secrets.PYPI_API_TOKEN }}
37+ verbose : true
You can’t perform that action at this time.
0 commit comments