From 90b073a54df07ce8d72b6194cc7b8cbe5a4e415a Mon Sep 17 00:00:00 2001 From: Andrew Nordman Date: Tue, 15 Jan 2019 18:27:40 -0600 Subject: [PATCH] Update README with a tag-filter example so it can be used during beta --- README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 675184c..f8352d2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This is a GitHub Action written to streamline the Ruby gem publication process. `GITHUB_TOKEN` - Bundler needs this to create tags on your repo for the release `RUBYGEMS_API_KEY` - The Rubygems API Key for an Owner of the Gem you wish to publish. You can find your API Key by looking in `~/.gem/credentials` or using the [Rubygems API](https://guides.rubygems.org/rubygems-org-api/#misc-methods) -# Env Options +# Environment Variables `RELEASE_COMMAND` - By default, this will invoke `rake release` to build and publish the gem to Rubygems. Set this environment variable if you have a custom release command to be invoked @@ -15,21 +15,18 @@ This is a GitHub Action written to streamline the Ruby gem publication process. ```hcl workflow "Publish Gem" { - on = "release" + on = "push" resolves = ["Release Gem"] } -action "Install Dependencies" { - uses = "docker://ruby:2.6.0" - args = "bundle install" +action "Tag Filter" { + uses = "actions/bin/filter@master" + args = "tag v*" } action "Release Gem" { uses = "cadwallion/publish-rubygems-action@master" secrets = ["GITHUB_TOKEN", "RUBYGEMS_API_KEY"] - env = { - "RELEASE_COMMAND" = "rake dotenv:release" - } - needs = ["Install Dependencies"] + needs = ["Tag Filter"] } ```