File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ # From https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2
+
3
+ name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
4
+ on : push
5
+
6
+ jobs :
7
+ build-n-publish :
8
+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - name : Set up Python
13
+ uses : actions/setup-python@v4
14
+ with :
15
+ python-version : " 3.x"
16
+ - name : Install pypa/build
17
+ run : >-
18
+ python3 -m
19
+ pip install
20
+ build
21
+ --user
22
+ - name : Build a binary wheel and a source tarball
23
+ run : >-
24
+ python3 -m
25
+ build
26
+ --sdist
27
+ --wheel
28
+ --outdir dist/
29
+
30
+ - name : Publish distribution 📦 to Test PyPI
31
+ uses : pypa/gh-action-pypi-publish@release/v1
32
+ with :
33
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
34
+ repository-url : https://test.pypi.org/legacy/
35
+ - name : Publish distribution 📦 to PyPI
36
+ if : startsWith(github.ref, 'refs/tags')
37
+ uses : pypa/gh-action-pypi-publish@release/v1
38
+ with :
39
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1
- __version__ = "0.0.1dev "
1
+ __version__ = "0.0.2 "
You can’t perform that action at this time.
0 commit comments