Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Publish to PyPI

on:
push:
tags:
- "v*"

# Rerun workflow manually if the publish fails without new tag
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: Build distributions
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.x"

- name: Install build
run: python3 -m pip install --upgrade build

- name: Build distributions
run: python3 -m build

- name: Upload distributions
uses: actions/upload-artifact@v7
with:
name: distributions
path: dist/
if-no-files-found: error

publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest

environment:
name: release
url: "https://pypi.org/project/python-lsp-ruff"

permissions:
id-token: write

steps:
- name: Download distributions
uses: actions/download-artifact@v8
with:
name: distributions
path: dist/

- name: Publish distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "python-lsp-ruff"
authors = [
{name = "Julian Hossbach", email = "julian.hossbach@gmx.de"}
]
version = "2.3.2"
version = "2.3.3"
description = "Ruff linting plugin for pylsp"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
Loading