Skip to content

Commit 3ef2b57

Browse files
Merge branch 'test_pypi_release' into develop
2 parents c6adc31 + 8ef269e commit 3ef2b57

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pypi_release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [push]
2+
3+
jobs:
4+
build-n-publish:
5+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Set up Python 3.8
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.8
14+
15+
- name: Install pypa/build
16+
run: python -m pip install build --user
17+
- name: Build a binary wheel and a source tarball
18+
run: python -m build --sdist --wheel --outdir dist/ .
19+
20+
- name: Publish distribution 📦 to Test PyPI
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
24+
repository_url: https://test.pypi.org/legacy/
25+
#- name: Publish distribution 📦 to PyPI
26+
# if: startsWith(github.ref, 'refs/tags')
27+
# uses: pypa/gh-action-pypi-publish@master
28+
# with:
29+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)