File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish djangocms-cascade
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ publish :
10+ name : " Publish release"
11+ runs-on : " ubuntu-latest"
12+
13+ environment :
14+ name : deploy
15+
16+ strategy :
17+ matrix :
18+ python-version : ["3.9"]
19+
20+ steps :
21+ - uses : actions/checkout@v3
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v3
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ python -m pip install twine
30+ python -m pip install build
31+ - name : Build 🐍 Python 📦 Package
32+ run : |
33+ python -m build --sdist --wheel --outdir dist/
34+ twine check --strict dist/*
35+ - name : Publish 🐍 Python 📦 Package to PyPI
36+ if : startsWith(github.ref, 'refs/tags')
37+ uses : pypa/gh-action-pypi-publish@release/v1
38+ with :
39+ user : __token__
40+ password : ${{ secrets.PYPI_API_TOKEN_DJANGO_ANGULAR }}
You can’t perform that action at this time.
0 commit comments