Merge pull request #3 from devmasx/new-sintax-v2

Merge pull request #3 from devmasx/new-sintax-v2

update readme with new yml sintax

diff --git a/README.md b/README.md
index 2586a76..03f68e6 100644
--- a/README.md
+++ b/README.md
@@ -13,20 +13,27 @@ This is a GitHub Action written to streamline the Ruby gem publication process. 
 
 # Example
 
-`‍``hcl
-workflow "Publish Gem" {
-  on = "push"
-  resolves = ["Release Gem"]
-}
-
-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"]
-  needs = ["Tag Filter"]
-}
+`‍``yml
+name: Publish Gem
+
+on:
+  push:
+    branches:
+      - "*"
+    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.GITHUB_TOKEN}}
+          RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
+          RELEASE_COMMAND: rake release
 `‍``

GitHub sha: 45d5b5c4