name: Release on: workflow_dispatch: jobs: release: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} - name: Identify run: | git config user.name OpenActive Bot git config user.email hello@openactive.io - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Publish to RubyGems run: | 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 bundle exec rake release env: GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"