Undefine allocators (#9) #19
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: Build and Publish Ruby Gem | |
on: | |
push: | |
tags: | |
- 'v*' # This triggers on tags that start with 'v' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' # Updated Ruby version | |
- name: Install dependencies | |
run: | | |
gem install bundler -v 2.4.22 | |
bundle install | |
- name: Build gem | |
run: | | |
export SCRIPTUP_VERSION="${GITHUB_REF_NAME#v}" | |
bundler exec rake download | |
gem build scriptup.gemspec | |
- name: Publish gem to RubyGems | |
env: | |
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} | |
run: | | |
gem push scriptup-*.gem |