File tree Expand file tree Collapse file tree 2 files changed +31
-19
lines changed
Expand file tree Collapse file tree 2 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 1- name : Tag and release
1+ name : " Release "
22
33on :
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
811jobs :
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"
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments