Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PA-5641) Add release job via PR #321

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tag and release

on:
push:
branches:
- main
paths:
- 'lib/puppet/resource_api/version.rb'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.PUPPET_RELEASE_GH_TOKEN }}
DEFAULT_BUMP: patch
TAG_CONTEXT: branch
WITH_V: false
# Uncomment this if the tag and version file become out-of-sync and
# you need to tag at a specific version.
# CUSTOM_TAG:
- 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_AUTH_TOKEN }}
with:
args: push *.gem