File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish to TestPyPI
2- on : push
1+ name : PyPi Release
2+
3+ on :
4+ push :
5+ pull_request :
6+ workflow_dispatch :
7+
8+ # based on https://github.com/pypa/gh-action-pypi-publish
39jobs :
4- build-n-publish :
5- name : Build and publish Python distributions to TestPyPI
6- runs-on : ubuntu-18.04
10+ build :
11+ runs-on : ubuntu-latest
12+
713 steps :
8- - uses : actions/checkout@master
9- - name : Set up Python 3.8
10- uses : actions/setup-python@v1
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-python@v2
1116 with :
12- python-version : 3.8
13- - name : Install pypa/build
17+ python-version : " 3.10"
18+
19+ - name : Install dependencies
1420 run : >-
15- python -m
16- pip install
17- build
18- --user
19- - name : Build a binary wheel and a source tarball
21+ python -m pip install --user --upgrade setuptools wheel
22+ - name : Convert dependencies
2023 run : >-
21- python -m
22- build
23- --sdist
24- --wheel
25- --outdir dist/
26- .
24+ sed -i 's/==/>=/g' setup.py; cat setup.py
25+ - name : Build
26+ run : >-
27+ python setup.py sdist bdist_wheel
28+ # - name: Publish distribution 📦 to PyPI
29+ # if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
30+ # uses: pypa/gh-action-pypi-publish@master
31+ # with:
32+ # user: __token__
33+ # password: ${{ secrets.PYPI_API_TOKEN }}
34+
2735 - name : Publish distribution to Test PyPI
28- uses : pypa/gh-action-pypi-publish@release/v1
36+ uses : pypa/gh-action-pypi-publish@master
2937 with :
3038 password : ${{ secrets.TEST_PYPI_API_TOKEN }}
3139 repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments