Skip to content

trigger_publish_test #21

trigger_publish_test

trigger_publish_test #21

Workflow file for this run

name: publish-test
# publish to test.pypi.org on merge to default branch
on:
workflow_dispatch:
repository_dispatch:
types: [trigger_publish_test]
jobs:
publish-test-main:
environment: cucu-publish-test # match name in test.PyPI.org OIDC
runs-on: ubuntu-latest
permissions:
id-token: write # Required for connection to pypi OIDC
contents: read # For non-public repo
steps:
- name: checkout main
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
- name: Install cucu with Python 3.12
run: |
uv sync -p 3.12
- name: build package
run: |
uv build
- name: publish to test.pypi.org
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/