Skip to content

Commit

Permalink
ci: add GitHub Actions workflow to publish on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lljbash committed Sep 3, 2024
1 parent 8fa9bdb commit 4ed6950
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit 4ed6950

Please sign in to comment.