Skip to content

Merge pull request #115 from Confidenceman02/release #52

Merge pull request #115 from Confidenceman02/release

Merge pull request #115 from Confidenceman02/release #52

Workflow file for this run

name: Publish
on:
push:
tags:
- 0.*.*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.5"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install publish dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build wheel
run: python -m build
- name: Store distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
overwrite: true
publish-to-pypi:
runs-on: ubuntu-latest
name: Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
environment:
name: release
url: https://pypi.org/p/djelm
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1