From fd2da1ab30559419af69c65d9b7baec5c329f2ad Mon Sep 17 00:00:00 2001 From: suleman-uzair Date: Mon, 29 Jun 2026 20:46:36 +0500 Subject: [PATCH 1/2] Align release and rake workflows with plurimath-ci secrets and trusted-publishing permissions --- .github/workflows/rake.yml | 2 +- .github/workflows/release.yml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml index a84c5f9..ef2b4f9 100644 --- a/.github/workflows/rake.yml +++ b/.github/workflows/rake.yml @@ -61,4 +61,4 @@ jobs: esac ruby -Ilib -rlasem -e 'abort "Lasem native extension unavailable" unless Lasem.native_available?' secrets: - pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} + pat_token: ${{ secrets.PLURIMATH_CI_PAT_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7bf4adc..ed3ded2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,7 @@ on: inputs: next_version: description: | - Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc). - Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version + Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc required: true default: 'skip' repository_dispatch: @@ -16,9 +15,12 @@ on: jobs: release: + permissions: + contents: write + id-token: write uses: metanorma/ci/.github/workflows/rubygems-release.yml@main with: next_version: ${{ github.event.inputs.next_version }} secrets: - rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }} - pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} + rubygems-api-key: ${{ secrets.PLURIMATH_CI_RUBYGEMS_API_KEY }} + pat_token: ${{ secrets.PLURIMATH_CI_PAT_TOKEN }} From 58e70a550921352f564f0f2fa8012d2797ee899f Mon Sep 17 00:00:00 2001 From: suleman-uzair Date: Mon, 29 Jun 2026 21:38:03 +0500 Subject: [PATCH 2/2] Document the 'skip' next_version option in the release workflow input --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed3ded2..9472d5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,8 @@ on: inputs: next_version: description: | - Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc + Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc. + Pass 'skip' to skip the version bump and release the current version. required: true default: 'skip' repository_dispatch: