Skip to content

Prepare version 0.9.0 (#269) #9

Prepare version 0.9.0 (#269)

Prepare version 0.9.0 (#269) #9

Workflow file for this run

name: Publish Python 🐍 distributions 📦 to TestPyPI
on:
push:
tags:
- '*'
permissions:
contents: read
jobs:
build-n-publish-testpypi:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
environment: staging
permissions:
id-token: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python3
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- name: Install packaging libraries
run: |
python -m pip install build setuptools
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel .
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.2
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true