From 8b946f24514e262f92e3a9182eb03ae55992e4aa Mon Sep 17 00:00:00 2001 From: Keith Brady <34693973+krcb197@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:59:07 +0000 Subject: [PATCH 1/3] Improve workflow to match latest guidelines --- .github/workflows/action.yaml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml index 200531c9..8639f009 100644 --- a/.github/workflows/action.yaml +++ b/.github/workflows/action.yaml @@ -1,8 +1,6 @@ # This is a basic workflow to help you get started with Actions name: CI -permissions: - contents: read # Controls when the action will run. on: @@ -22,6 +20,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: read + id-token: write + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: lint: @@ -483,16 +485,16 @@ jobs: - name: Install dependencies run: | - python -m pip install -U build + run: python -m pip install --upgrade pip build - name: Build - run: python -m build + run: python -m build --sdist --wheel --outdir dist - uses: actions/upload-artifact@v4 with: - path: | - dist/*.tar.gz - dist/*.whl + name: python-package + path: dist/* + if-no-files-found: error #------------------------------------------------------------------------------- deploy: @@ -501,15 +503,19 @@ jobs: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + # Only publish when a GitHub Release is created. if: github.event_name == 'release' steps: - uses: actions/download-artifact@v4 with: - name: artifact + name: python-package path: dist - uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: dist/ + skip-existing: true From 01254b9e024b9ca585cfb4a62deac2264395f1f2 Mon Sep 17 00:00:00 2001 From: Keith Brady <34693973+krcb197@users.noreply.github.com> Date: Sun, 25 Oct 2026 17:01:01 +0000 Subject: [PATCH 2/3] Set the build version to a release candidate so we can test the releases --- src/peakrdl_python/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peakrdl_python/__about__.py b/src/peakrdl_python/__about__.py index cad140e6..7f1fb2ff 100644 --- a/src/peakrdl_python/__about__.py +++ b/src/peakrdl_python/__about__.py @@ -17,4 +17,4 @@ Variables that describes the peakrdl-python Package """ -__version__ = "4.0.0" +__version__ = "4.0.0rc2" From 7e7eeb0852eb955f7bbcc0afc46c9aa2fccc8be0 Mon Sep 17 00:00:00 2001 From: Keith Brady <34693973+krcb197@users.noreply.github.com> Date: Sun, 25 Oct 2026 17:50:21 +0000 Subject: [PATCH 3/3] Fix syntax error in action.yaml --- .github/workflows/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml index 8639f009..eb00a3dd 100644 --- a/.github/workflows/action.yaml +++ b/.github/workflows/action.yaml @@ -485,7 +485,7 @@ jobs: - name: Install dependencies run: | - run: python -m pip install --upgrade pip build + python -m pip install --upgrade pip build - name: Build run: python -m build --sdist --wheel --outdir dist