name: Publish Gem on: push: branches: - "master" - "github-workflow-publish-gem" jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Release Gem uses: cadwallion/publish-rubygems-action@master env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} RELEASE_COMMAND: rake release