Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Publish to Test PyPI
on:
push:
branches:
- main
- release

jobs:
deploy:
name: Build and Publish to Test PyPI
name: Build and Publish to PyPI
runs-on: ubuntu-latest

steps:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish to Test PyPI

on:
push:
branches:
- main

jobs:
deploy:
name: Build and Publish to Test PyPI
runs-on: ubuntu-latest

permissions:
id-token: write # Required for Trusted Publisher authentication

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build package
run: python -m build

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true