From fd8cb7fe88f3e81d5a3afd2ff0cbd90013fb6726 Mon Sep 17 00:00:00 2001
From: Jaromil <jaromil@dyne.org>
Date: Wed, 18 Dec 2024 13:45:16 +0100
Subject: [PATCH] fix: try again to update release text with vt links

---
 .github/workflows/main.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8e98bf8..1d63cb8 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -253,15 +253,6 @@ jobs:
           mv cjit-tutorial.tar.gz cjit-bin/release-tutorial/
       - name: show release directory structure
         run: tree -dL 3
-      - name: VirusTotal Scan
-        uses: crazy-max/ghaction-virustotal@v4
-        with:
-          vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
-          update_release_body: true
-          files: |
-            cjit-bin/release-win-native-x86_64/*
-            cjit-bin/release-osx-native/*
-            cjit-bin/release-tutorial/cjit-tutorial.tar.gz
       - name: relase all binary artifacts
         uses: softprops/action-gh-release@v2
         with:
@@ -274,6 +265,15 @@ jobs:
           prerelease: false
           fail_on_unmatched_files: true
           generate_release_notes: true
+      - name: VirusTotal Scan
+        uses: crazy-max/ghaction-virustotal@v4
+        with:
+          vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
+          update_release_body: true
+          files: |
+            cjit-bin/release-win-native-x86_64/*
+            cjit-bin/release-osx-native/*
+            cjit-bin/release-tutorial/cjit-tutorial.tar.gz
 
   remove-tag-on-fail:
     name: 🧻 Remove tag on fail