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