This repository was archived by the owner on May 30, 2023. It is now read-only.
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 Python π library π¦ to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build-n-publish :
9+ runs-on : ${{ matrix.os }}
10+ strategy :
11+ matrix :
12+ os :
13+ - ubuntu-latest
14+ architecture :
15+ - ' x64'
16+ python-version :
17+ - ' 3.8'
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v3
22+
23+ - name : Setup Python
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ architecture : ${{ matrix.architecture }}
28+
29+ - name : Install pypa/build
30+ run : >-
31+ python -m
32+ pip install
33+ build
34+ --user
35+
36+ - name : Build a binary wheel and a source tarball
37+ run : >-
38+ python -m
39+ build
40+ --sdist
41+ --wheel
42+ --outdir dist/
43+ .
44+
45+ - name : Publish library π¦ to PyPI
46+ uses : pypa/gh-action-pypi-publish@release/v1
47+ with :
48+ user : __token__
49+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1- name : Publish Python π library π¦ to TestPyPI and PyPI
1+ name : Publish Python π library π¦ to TestPyPI
22
33on :
44 push :
4949 user : __token__
5050 password : ${{ secrets.TEST_PYPI_API_TOKEN }}
5151 repository_url : https://test.pypi.org/legacy/
52-
53- - name : Publish library π¦ to PyPI
54- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
55- uses : pypa/gh-action-pypi-publish@release/v1
56- with :
57- user : __token__
58- password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1- __version__ = "0.0.4 "
1+ __version__ = "0.0.5 "
You canβt perform that action at this time.
0 commit comments