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