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
35 changes: 35 additions & 0 deletions .github/workflows/publish-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish-prod

on:
workflow_dispatch:

jobs:
pypi-publish:
name: publish release to PyPI
runs-on: ubuntu-latest
environment:
name: publish-prod
permissions:
id-token: write
env:
TRUSTED_PUBLISHING: always
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v6

- name: Set up Python
# https://github.com/actions/setup-python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
#
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
# Install a specific version of uv.
version: "0.11.4"
- run: uv build
- name: Publish package distributions to TestPyPI
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
uses: pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: publish release to PyPI Test
runs-on: ubuntu-latest
environment:
name: release_test
name: publish-test
url: https://test.pypi.org/p/apopy
permissions:
id-token: write
Expand Down