Skip to content

Commit

Permalink
Updated to the new version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-dadhaniya committed Oct 10, 2023
1 parent b8403ce commit b007039
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- master-worlflow-update

jobs:
release_gem_linux:
Expand Down Expand Up @@ -37,7 +36,7 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
# gem push *.gem
gem push *.gem
release_gem_windows:
name: Release Gem for Windows
Expand All @@ -53,12 +52,14 @@ jobs:
ruby-version: 3.0

- name: Install Dependencies
shell: bash
run: |
gem install bundler
gem install 'bigdecimal'
bundle install
- name: Build Gem Package
shell: bash
run: |
gem build middleware_rubygem.gemspec
Expand All @@ -72,7 +73,7 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
# gem push *.gem
gem push *.gem
create_release:
name: Release the latest release
Expand All @@ -92,15 +93,15 @@ jobs:
NEW_VERSION=$(git show HEAD:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
echo "::set-output name=version::$NEW_VERSION"
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ steps.get_new_version.outputs.version }}
# release_name: Release ${{ steps.get_new_version.outputs.version }}
# body: |
# Release ${{ steps.get_new_version.outputs.version }}
# draft: false
# prerelease: false
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.get_new_version.outputs.version }}
release_name: Release ${{ steps.get_new_version.outputs.version }}
body: |
Release ${{ steps.get_new_version.outputs.version }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion lib/middleware/ruby_gem/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Middleware
module RubyGem
VERSION = "1.0.0"
VERSION = "2.0.0"
end
end

0 comments on commit b007039

Please sign in to comment.