Skip to content

Python package to testpypi #8

Python package to testpypi

Python package to testpypi #8

name: Python package to testpypi
on:
push:
tags:
- "v*.*.*-*"
workflow_dispatch:
# inputs:
# tag:
# description: "Tag to publish"
# required: true
# default: "v*.*.*-*"
jobs:
publish_pypi:
runs-on: ubuntu-latest
# environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Mint token
id: mint
uses: tschm/[email protected]
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: "${{ steps.mint.outputs.api-token }}"
repository_username: "__token__"
repository_password: "${{ steps.mint.outputs.api-token }}"