Skip to content

Commit

Permalink
.github/workflows/publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Nov 13, 2023
1 parent ae9d777 commit aa3f917
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish djangocms-cascade

on:
push:
tags:
- '*'

jobs:
publish:
name: "Publish release"
runs-on: "ubuntu-latest"

environment:
name: deploy

strategy:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install twine
python -m pip install build
- name: Build 🐍 Python 📦 Package
run: |
python -m build --sdist --wheel --outdir dist/
twine check --strict dist/*
- name: Publish 🐍 Python 📦 Package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_DJANGO_ANGULAR }}

0 comments on commit aa3f917

Please sign in to comment.