Skip to content

Merge pull request #952 from sirosen/release-3.25.0 #15

Merge pull request #952 from sirosen/release-3.25.0

Merge pull request #952 from sirosen/release-3.25.0 #15

name: Publish Test PyPI Release
on:
push:
tags: ["*"]
jobs:
build-dists:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "3.12"
- run: python -m pip install build
- name: Set dev version prior to upload
run: python ./scripts/set_dev_version.py
- name: Build Dists
run: python -m build .
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: packages
path: dist/*
publish:
needs: [build-dists]
runs-on: ubuntu-latest
environment: publish-test-pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: packages
path: dist
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf # v1.8.11
with:
repository-url: https://test.pypi.org/legacy/