Skip to content

Commit

Permalink
ci to publish ouroborus gem on github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
uxjp committed Feb 20, 2024
1 parent 1e6a98d commit 48bef20
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gem_deploy_ouroborus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Ouroborus Gem

on:
push:
tags:
- 'ouroborus*'

jobs:
publish-gem:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0

- name: Publish Ouroborus Gem to GitHub Registry
run: |
mkdir -p ~/.gem
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
cd ouroborus
gem build ouroborus.gemspec
gem push --key github --host https://rubygems.pkg.github.com/${{ github.actor }} ouroborus-*.gem

0 comments on commit 48bef20

Please sign in to comment.