Skip to content

Merge pull request #2 from sqm/1207966452799142-upgrade-to-bootstrap-5 #1

Merge pull request #2 from sqm/1207966452799142-upgrade-to-bootstrap-5

Merge pull request #2 from sqm/1207966452799142-upgrade-to-bootstrap-5 #1

Workflow file for this run

name: Build and Push Gem
on:
push:
branches: [ main ]
jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Publish to Github Package Registry
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
rake build
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} pkg/*.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}