Merge pull request #20 from sittercity/sc-178855 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bureaucrat master | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build + Publish | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
- 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 |