Skip to content

Commit a1d66e2

Browse files
authored
Merge pull request #321 from tvpartytonight/PA-5641
(PA-5641) Add release job via PR
2 parents fdd92fd + c13800c commit a1d66e2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tag and release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'lib/puppet/resource_api/version.rb'
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: '0'
17+
- name: Bump version and push tag
18+
uses: anothrNick/[email protected]
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.PUPPET_RELEASE_GH_TOKEN }}
21+
DEFAULT_BUMP: patch
22+
TAG_CONTEXT: branch
23+
WITH_V: false
24+
# Uncomment this if the tag and version file become out-of-sync and
25+
# you need to tag at a specific version.
26+
# CUSTOM_TAG:
27+
- name: Build gem
28+
uses: scarhand/actions-ruby@master
29+
with:
30+
args: build *.gemspec
31+
- name: Publish gem
32+
uses: scarhand/actions-ruby@master
33+
env:
34+
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
35+
with:
36+
args: push *.gem

0 commit comments

Comments
 (0)