Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Preparing for v0.4.0 release. (#77) #16

Preparing for v0.4.0 release. (#77)

Preparing for v0.4.0 release. (#77) #16

Workflow file for this run

---
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: # NOLINT
push:
tags:
- "*"
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/statick-md
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
- name: Install tools
run: |
pip install .[dist]
- name: Build a binary wheel and a source tarball
run: |
pip install -q build
python -m build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}