File tree Expand file tree Collapse file tree 3 files changed +85
-1
lines changed
Expand file tree Collapse file tree 3 files changed +85
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distributions 📦 to pypi
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+
8+ jobs :
9+ build-n-publish :
10+ name : Build and publish Python 🐍 distributions 📦 to pypi
11+ runs-on : ubuntu-latest
12+ environment :
13+ name : pypi
14+ url : https://pypi.org/p/djangocms-alias
15+ permissions :
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v3
19+ - name : Set up Python 3.10
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.10'
23+
24+ - name : Install pypa/build
25+ run : >-
26+ python -m
27+ pip install
28+ build
29+ --user
30+ - name : Build a binary wheel and a source tarball
31+ run : >-
32+ python -m
33+ build
34+ --sdist
35+ --wheel
36+ --outdir dist/
37+ .
38+
39+ - name : Publish distribution 📦 to PyPI
40+ if : startsWith(github.ref, 'refs/tags')
41+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distributions 📦 to TestPyPI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build-n-publish :
10+ name : Build and publish Python 🐍 distributions 📦 to TestPyPI
11+ runs-on : ubuntu-latest
12+ environment :
13+ name : pypi
14+ url : https://test.pypi.org/p/djangocms-alias
15+ permissions :
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v3
19+ - name : Set up Python 3.10
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.10'
23+
24+ - name : Install pypa/build
25+ run : >-
26+ python -m
27+ pip install
28+ build
29+ --user
30+ - name : Build a binary wheel and a source tarball
31+ run : >-
32+ python -m
33+ build
34+ --sdist
35+ --wheel
36+ --outdir dist/
37+ .
38+
39+ - name : Publish distribution 📦 to Test PyPI
40+ uses : pypa/gh-action-pypi-publish@release/v1
41+ with :
42+ repository-url : https://test.pypi.org/legacy/
43+ skip_existing : true
Original file line number Diff line number Diff line change 1- __version__ = '1.11.0 '
1+ __version__ = '2.0.0rc1 '
You can’t perform that action at this time.
0 commit comments