Skip to content

Commit

Permalink
Create publish-gem.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov authored Oct 25, 2024
1 parent a01baa4 commit 549278d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Gem
on:
push:
tags:
- '*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.2'
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build the gem
run: |
gem build au_core_test_kit.gemspec
- name: Publish the gem
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} your_gem-*.gem

0 comments on commit 549278d

Please sign in to comment.