From 7c1fbe0e47beac26d59c250e0cd6516888e18e03 Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Wed, 4 Sep 2024 04:26:41 +0000 Subject: [PATCH] CI improvements --- .github/workflows/publish.yml | 20 ++++++++++---------- pyproject.toml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 79f2b75..fa6fbfc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,22 +14,22 @@ jobs: url: https://pypi.org/project/nvidia-pstate permissions: + attestations: write id-token: write steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: "3.x" - - - name: Install dependencies - run: pip install build + - name: Build wheels + run: pipx run build - - name: Build package - run: python -m build + - name: Attest build provenance + uses: actions/attest-build-provenance@v1 + with: + subject-path: dist/* - - name: Publish package + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist diff --git a/pyproject.toml b/pyproject.toml index 5726411..a06cbb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ [project] description = "A library and CLI utilities for managing performance states of NVIDIA GPUs." name = "nvidia_pstate" -version = "1.0.5.post1" +version = "1.0.5.post2" readme = "README.md" authors = [