Skip to content

Commit 956b606

Browse files
authored
Merge pull request #382 from puppetlabs/add_release_prep_and_release_actions_for_1_9_x
(maint): Add release preparation and release actions for 1.9.x
2 parents a5bb802 + 617537c commit 956b606

File tree

2 files changed

+31
-19
lines changed

2 files changed

+31
-19
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
name: Tag and release
1+
name: "Release"
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
workflow_dispatch:
5+
inputs:
6+
target:
7+
description: "The target for the release. This can be a commit sha or a branch."
8+
required: false
9+
default: "1.9.x"
710

811
jobs:
912
release:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
with:
14-
fetch-depth: '0'
15-
- name: Build gem
16-
uses: scarhand/actions-ruby@master
17-
with:
18-
args: build *.gemspec
19-
- name: Publish gem
20-
uses: scarhand/actions-ruby@master
21-
env:
22-
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_JENKINS_GH_ACTIONS_PUSH }}
23-
with:
24-
args: push *.gem
13+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14+
with:
15+
target: "${{ github.event.inputs.target }}"
16+
secrets: "inherit"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Release Prep"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
target:
7+
description: "The target for the release. This can be a commit sha or a branch."
8+
required: false
9+
default: "1.9.x"
10+
version:
11+
description: "Version of gem to be released."
12+
required: true
13+
14+
jobs:
15+
release_prep:
16+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
17+
with:
18+
target: "${{ github.event.inputs.target }}"
19+
version: "${{ github.event.inputs.version }}"
20+
secrets: "inherit"

0 commit comments

Comments
 (0)