Skip to content

Commit

Permalink
work flow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shyam-cb committed Jun 11, 2024
1 parent ed70c61 commit e25b770
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
bundler-cache: true
- run: bundle install
- run: gem build test-gem-publish.gemspec
- name: Get version from tag
id: get_version
run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -72,12 +75,12 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./test-gem-publish-*.gem
asset_path: ./test-gem-publish-${{ env.VERSION }}.gem
asset_name: test-gem-publish-*.gem
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gem push test-gem-publish-*.gem
- run: gem push test-gem-publish-${{ env.VERSION }}.gem
env:
BUNDLE_PATH: vendor/bundle
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}

0 comments on commit e25b770

Please sign in to comment.