Merge pull request #1385 from justinstoller/prep410 #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag and release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'lib/r10k/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/[email protected] | |
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 | |