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

Create a new tag and release when a merge is made to 'powerhrg' branch #7

Merged
merged 1 commit into from
Nov 29, 2024
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
14 changes: 7 additions & 7 deletions .github/workflows/build-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches: [ "powerhrg" ]
paths:
- "lib/krane/version.rb"
pull_request:
branches: [ "powerhrg" ]
paths:
- "lib/krane/version.rb"

jobs:
build:
Expand All @@ -30,16 +26,20 @@ jobs:
VERSION=$(ruby -r './lib/krane/version.rb' -e "puts Krane::VERSION")
echo "VERSION=$VERSION" >> $GITHUB_ENV

- name: Create a new tag
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}

- name: Build the gem
run: gem build krane.gemspec

- name: Get gem file name
id: get_gem_name
run: echo "GEM_FILE=$(ls krane-*.gem)" >> $GITHUB_ENV

- name: List files for debugging
run: ls -la

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand Down