Skip to content

Merge pull request #19 from sittercity/ch138081 #6

Merge pull request #19 from sittercity/ch138081

Merge pull request #19 from sittercity/ch138081 #6

name: bureaucrat master
on:
push:
branches: [ master ]
env:
BUNDLER_ACCESS_TOKEN: ${{ secrets.TECH_OPS_ACCESS_TOKEN }}
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{ secrets.TECH_OPS_ACCESS_TOKEN }}
jobs:
build:
name: Build + Publish
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Publish to GPR
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${{ secrets.GITHUB_TOKEN }}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/sittercity *.gem