Skip to content

Add support for publishing tags to PyPI #1

Add support for publishing tags to PyPI

Add support for publishing tags to PyPI #1

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "**"
jobs:
publish_to_pypi:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyhelm3
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1