name: Publish Gem on: push: tags: - v* jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Release Gem if: contains(github.ref, 'refs/tags/v') uses: cadwallion/publish-rubygems-action@master env: GITHUB_TOKEN: ${{secrets.GITHUBTOKEN}} RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} RELEASE_COMMAND: rake release