From 617537ceeb3c3d1ae936adeec40df94c7595d1d9 Mon Sep 17 00:00:00 2001 From: Saurabh Pandit Date: Wed, 17 Dec 2025 15:30:13 +0530 Subject: [PATCH] (maint): Add release preparation and release actions for 1.9.x --- .github/workflows/release.yaml | 30 +++++++++++------------------ .github/workflows/release_prep.yaml | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/release_prep.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 16f9ab78..2fa46144 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,24 +1,16 @@ -name: Tag and release +name: "Release" on: - push: - tags: - - '*' + workflow_dispatch: + inputs: + target: + description: "The target for the release. This can be a commit sha or a branch." + required: false + default: "1.9.x" jobs: release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - name: Build gem - uses: scarhand/actions-ruby@master - with: - args: build *.gemspec - - name: Publish gem - uses: scarhand/actions-ruby@master - env: - RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_JENKINS_GH_ACTIONS_PUSH }} - with: - args: push *.gem + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main" + with: + target: "${{ github.event.inputs.target }}" + secrets: "inherit" \ No newline at end of file diff --git a/.github/workflows/release_prep.yaml b/.github/workflows/release_prep.yaml new file mode 100644 index 00000000..f2666b5c --- /dev/null +++ b/.github/workflows/release_prep.yaml @@ -0,0 +1,20 @@ +name: "Release Prep" + +on: + workflow_dispatch: + inputs: + target: + description: "The target for the release. This can be a commit sha or a branch." + required: false + default: "1.9.x" + version: + description: "Version of gem to be released." + required: true + +jobs: + release_prep: + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main" + with: + target: "${{ github.event.inputs.target }}" + version: "${{ github.event.inputs.version }}" + secrets: "inherit"