bump to next version (#831) #26
Workflow file for this run
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: Publish Gem | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set version | |
id: version | |
run: echo ::set-output name=version::${GITHUB_REF#refs/*/v} | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby using Bundler | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "2.7.1" | |
bundler-cache: true | |
bundler: "2.1.4" | |
- name: install gems | |
run: bundle install | |
- name: Setup Rubygems credentials | |
run: | | |
set +x | |
mkdir -p ~/.gem | |
cat << EOF > ~/.gem/credentials | |
--- | |
:rubygems_api_key: ${{ secrets.OSC_ROBOT_RUBYGEMS_TOKEN }} | |
EOF | |
chmod 0600 ~/.gem/credentials | |
- name: Publish Gem | |
run: | | |
bundle exec rake build | |
gem push pkg/ood_core-${{ steps.version.outputs.version }}.gem |