Skip to content

Commit

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

jobs:
release_gem_linux:
Expand Down Expand Up @@ -36,7 +37,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 @@ -52,13 +53,11 @@ jobs:
ruby-version: 3.0

- name: Install Dependencies
shell: bash
run: |
gem install bundler
bundle install
- name: Build Gem Package
shell: bash
run: |
gem build middleware_rubygem.gemspec
Expand All @@ -72,7 +71,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 +91,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

0 comments on commit fd42999

Please sign in to comment.