Publish #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# publish.yaml | |
# | |
# GitHub Action Publish Workflow CI/CD configuration. | |
# | |
# author : stefan schablowski | |
# contact : stefan.schablowski@desmodyne.com | |
# created : 2025-03-23 | |
# taken from "Step 3" at | |
# https://medium.com/@blackary/ ... | |
# ... publishing-a-python-package-from-github-to-pypi-in-2024-a6fb8635d45d | |
name: Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
environment: | |
name: pypi | |
url: https://pypi.org/p/keyring-insecure-backend | |
name: publish | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: 0.6.9 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: code/python/pyproject.toml | |
- name: Run `uv build` | |
run: uv build --directory code/python | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |