We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768b90d commit bb6e1e5Copy full SHA for bb6e1e5
1 file changed
.github/workflows/publish-to-test-pypi.yml
@@ -0,0 +1,27 @@
1
+name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2
+on: push
3
+
4
+jobs:
5
+ publish:
6
+ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@master
10
+ - name: Set up Python 3.7
11
+ uses: actions/setup-python@v1
12
+ with:
13
+ python-version: 3.7
14
+ - name: Install pypa/build
15
+ run: >-
16
+ python -m
17
+ pip install build --user
18
+ - name: Build a binary wheel and a source tarball
19
20
21
+ build --sdist --outdir dist/ .
22
+ - name: Publish distribution 📦 to Test PyPI
23
+ uses: pypa/gh-action-pypi-publish@master
24
25
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
26
+ repository_url: https://test.pypi.org/legacy/
27
0 commit comments