| 1 |
name: Publish django-sass-processor |
| 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.11"] |
| 19 |
|
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v4 |
| 22 |
- name: Set up Python ${{ matrix.python-version }} |
| 23 |
uses: actions/setup-python@v5 |
| 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 build --user |
| 30 |
- name: Build 🐍 Python 📦 Package |
| 31 |
run: python -m build --sdist --wheel --outdir dist/ |
| 32 |
- name: Publish 🐍 Python 📦 Package to PyPI |
| 33 |
if: startsWith(github.ref, 'refs/tags') |
| 34 |
uses: pypa/gh-action-pypi-publish@master |
| 35 |
with: |
| 36 |
password: ${{ secrets.PYPI_API_TOKEN_SASS_PROCESSOR }} |