forked from Shopify/krane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a new tag and release when a merge is made to 'powerhrg' branch
This will enable us to use Renovate to make sure the gem is always at the latest version, and only release on merges to 'powerhrg' branch
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ on: | |
branches: [ "powerhrg" ] | ||
paths: | ||
- "lib/krane/version.rb" | ||
pull_request: | ||
branches: [ "powerhrg" ] | ||
paths: | ||
- "lib/krane/version.rb" | ||
|
||
jobs: | ||
build: | ||
|
@@ -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 | ||
|