From f2e36490db4895b4e9fdaaf74af33289a802266c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20B=C5=82aszczyk?= <blaszczyk.jakub@protonmail.com>
Date: Thu, 26 Oct 2023 15:52:20 +0200
Subject: [PATCH] update ci for release

---
 .github/workflows/ci.yaml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 790d8ad..3e88f4f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -1,5 +1,6 @@
 name: CI
 on:
+  create:
   push:
     branches:
       - "master"
@@ -76,7 +77,8 @@ jobs:
     name: Compile and test
     runs-on: ubuntu-latest
     if: |
-      needs.detect-repo-changes.outputs.code-changed == 'true'
+      needs.detect-repo-changes.outputs.code-changed == 'true' ||
+      github.ref_type == 'tag'
     needs:
       - detect-repo-changes
       - dependencies
@@ -95,7 +97,8 @@ jobs:
     runs-on: ubuntu-latest
     if: |
       needs.detect-repo-changes.outputs.code-changed == 'true' ||
-      needs.detect-repo-changes.outputs.dockerfile-changed == 'true'
+      needs.detect-repo-changes.outputs.dockerfile-changed == 'true' ||
+      github.ref_type == 'tag'
     needs:
       - detect-repo-changes
       - dependencies
@@ -115,7 +118,8 @@ jobs:
     name: Build docker image
     runs-on: ubuntu-latest
     if: |
-      needs.detect-repo-changes.outputs.dockerfile-changed == 'true'
+      needs.detect-repo-changes.outputs.dockerfile-changed == 'true' ||
+      github.ref_type == 'tag'
     needs:
       - detect-repo-changes
       - dependencies
@@ -128,7 +132,7 @@ jobs:
         run: make docker-build
 
   release:
-    if: ${{ github.ref_type == 'tag' }}
+    if: github.ref_type == 'tag'
     needs:
       - test-build
       - test-integration