Skip to content

Merge pull request #7 from ParentSquare/sync-upstream #3

Merge pull request #7 from ParentSquare/sync-upstream

Merge pull request #7 from ParentSquare/sync-upstream #3

Workflow file for this run

---
name: ParentSquare Release
on:
push:
tags: ['v*']
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to GitHub package repository
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby#publishing-gems
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
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}