name: Release on: push: tags: [ '*' ] jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 - run: | install -D -m 600 <(echo -e "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}") $HOME/.gem/credentials gem build *.gemspec gem push *.gem env: RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}