Separate release steps in files

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml
index c9ae954..5fbe22d 100644
--- a/.github/workflows/ci-release.yml
+++ b/.github/workflows/ci-release.yml
@@ -11,51 +11,9 @@
 jobs:
   tests:
     uses: ./.github/workflows/workflow-tests.yml
-  release-tuf:
-    permissions:
-      id-token: write
-      contents: write
-    runs-on: ubuntu-latest
+  tuf:
+    uses: ./.github/workflows/workflow-rel-tuf.yml
     needs: tests
-    # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-      - name: Set up Go
-        uses: actions/setup-go@v2
-        with:
-          go-version: 1.17
-      - name: Run GoReleaser
-        uses: goreleaser/goreleaser-action@v2
-        with:
-          distribution: goreleaser
-          version: "v1.2.5"
-          args: release --config ./.goreleaser/tuf-cli-release-cfg.yml --rm-dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-  release-tuf-client:
-    permissions:
-      id-token: write
-      contents: write
-    runs-on: ubuntu-latest
+  tuf-client:
+    uses: ./.github/workflows/workflow-rel-tuf-client.yml
     needs: tests
-    # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-      - name: Set up Go
-        uses: actions/setup-go@v2
-        with:
-          go-version: 1.17
-      - name: Run GoReleaser
-        uses: goreleaser/goreleaser-action@v2
-        with:
-          distribution: goreleaser
-          version: "v1.2.5"
-          args: release --config ./.goreleaser/tuf-client-cli-release-cfg.yml --rm-dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index ef4430d..359e955 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -3,6 +3,8 @@
     branches:
       - "master"
   pull_request:
+    branches:
+      - "master"
 name: Run tests
 jobs:
   tests:
diff --git a/.github/workflows/workflow-rel-tuf-client.yml b/.github/workflows/workflow-rel-tuf-client.yml
new file mode 100644
index 0000000..a48c202
--- /dev/null
+++ b/.github/workflows/workflow-rel-tuf-client.yml
@@ -0,0 +1,27 @@
+on:
+  workflow_call:
+name: Reusable workflow release - tuf-client
+jobs:
+  release:
+    permissions:
+      id-token: write
+      contents: write
+    runs-on: ubuntu-latest
+    # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - name: Set up Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.17
+      - name: Run GoReleaser
+        uses: goreleaser/goreleaser-action@v2
+        with:
+          distribution: goreleaser
+          version: "v1.2.5"
+          args: release --config ./.goreleaser/tuf-client-cli-release-cfg.yml --rm-dist
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/workflow-rel-tuf.yml b/.github/workflows/workflow-rel-tuf.yml
new file mode 100644
index 0000000..c72307d
--- /dev/null
+++ b/.github/workflows/workflow-rel-tuf.yml
@@ -0,0 +1,27 @@
+on:
+  workflow_call:
+name: Reusable workflow release - tuf
+jobs:
+  release:
+    permissions:
+      id-token: write
+      contents: write
+    runs-on: ubuntu-latest
+    # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - name: Set up Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.17
+      - name: Run GoReleaser
+        uses: goreleaser/goreleaser-action@v2
+        with:
+          distribution: goreleaser
+          version: "v1.2.5"
+          args: release --config ./.goreleaser/tuf-cli-release-cfg.yml --rm-dist
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}