Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew #18703

Closed
wants to merge 3 commits into from
Closed

brew #18703

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Ruby Gem

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

Check failure on line 15 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
version: 2.6.x

- name: Publish to GPR
run: |

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:1:10: Double quote to prevent globbing and word splitting

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:2:7: Double quote to prevent globbing and word splitting

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:3:12: Double quote to prevent globbing and word splitting

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2059:info:4:11: Don't use variables in the printf format string. Use printf '..%s..' "$foo"

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:4:58: Double quote to prevent globbing and word splitting

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2035:info:5:11: Use ./*glob* or -- *glob* so names with dashes won't become options

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:6:62: Double quote to prevent globbing and word splitting

Check failure on line 22 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2035:info:6:71: Use ./*glob* or -- *glob* so names with dashes won't become options
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: Bearer ${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: ${{secrets.GPR_AUTH_TOKEN}}
OWNER: username

- name: Publish to RubyGems
run: |

Check failure on line 34 in .github/workflows/gempush.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2086:info:1:10: Double quote to prevent globbing and word splitting
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
Loading