Skip to content

Add token verifier and support ServiceClient token generation. fix #1. #42

Add token verifier and support ServiceClient token generation. fix #1.

Add token verifier and support ServiceClient token generation. fix #1. #42

Workflow file for this run

on:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- main
- 'release/**'
jobs:
ruby:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.0
# bundler-cache: true
- name: Install packages
run: gem install bundler:'~> 2.4.9' && bundle install
- name: Run build
run: |
bundle exec rake --trace
bundle exec rake build --trace
- name: Deploy to RubyGems
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
run: |
bundle exec rake publish_git_tag --trace
gem push pkg/*.gem -V
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
- name: After build
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "setup push to main"