From d7cf1648defa6ae5e9539d6b02070064e18b4ed9 Mon Sep 17 00:00:00 2001 From: dmitrijivanchenko Date: Wed, 13 Oct 2021 17:13:16 +0600 Subject: [PATCH] Add gem push workflow (#100) --- .github/workflows/gem-push.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/gem-push.yml diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml new file mode 100644 index 0000000..2f833a4 --- /dev/null +++ b/.github/workflows/gem-push.yml @@ -0,0 +1,20 @@ +name: Publish Gem + +on: + push: + 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@v1.0.0 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} + RELEASE_COMMAND: rake release