From f7b9e7e3dc5931134a480627bcbe6863816e8294 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Hamy?= <aunetx@yandex.com>
Date: Thu, 22 Jun 2023 14:47:54 +0200
Subject: [PATCH] Update build-artifacts.yml

---
 .github/workflows/build-artifacts.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml
index 369040f..6c72331 100644
--- a/.github/workflows/build-artifacts.yml
+++ b/.github/workflows/build-artifacts.yml
@@ -35,12 +35,16 @@ jobs:
     - name: Get the version
       id: get_version
       run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
+      
+    - name: Generate sha256
+      id: gen_sha256
+      run: echo ::set-output name=SHA256::$(sha256sum artifacts/x64/*.tar.xz | awk '{ print $1 }')
 
-    - name: create draft release
+    - name: create release
       uses: softprops/action-gh-release@v1
       with:
         tag_name: ${{ steps.get_version.outputs.VERSION }}
-        body: 'Update to version ${{ steps.get_version.outputs.VERSION }}'
+        body: 'Update to version ${{ steps.get_version.outputs.VERSION }}\ntar.xz sha256: ${{ steps.gen_sha256.outputs.SHA256 }}'
         draft: false
         files: |
             deezer.flatpakref