Skip to content

ci: add GitHub Actions workflow to publish on tag #1

ci: add GitHub Actions workflow to publish on tag

ci: add GitHub Actions workflow to publish on tag #1

Workflow file for this run

name: publish-on-tag
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
pypi-publish-on-tag:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/clangd-tidy
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- run: |
python3 -m pip install --upgrade build
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1