Skip to content

Commit aa3f917

Browse files
committed
.github/workflows/publish.yml
1 parent ae9d777 commit aa3f917

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

0 commit comments

Comments
 (0)