From 2e03c62a062bd8eedd3fa04cc5cccdefc338e04a Mon Sep 17 00:00:00 2001
From: Robert Czechowski <robert@code-intelligence.com>
Date: Wed, 18 Dec 2024 11:21:35 +0100
Subject: [PATCH 1/2] ci: Downgrade softprops/action-gh-release to v2.0.9 in
 prerelease workflow as v2.2.0 is broken

---
 .github/workflows/prerelease.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml
index ff1fc1131..d3297dc07 100644
--- a/.github/workflows/prerelease.yaml
+++ b/.github/workflows/prerelease.yaml
@@ -143,7 +143,7 @@ jobs:
           path: _releases/
 
       - name: create release
-        uses: softprops/action-gh-release@v2.2.0
+        uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
         with:
           generate_release_notes: true
           draft: true

From d1ca36beec58eb9d0e14c0f68a0821a6627c8575 Mon Sep 17 00:00:00 2001
From: Robert Czechowski <robert@code-intelligence.com>
Date: Wed, 18 Dec 2024 11:28:14 +0100
Subject: [PATCH 2/2] ci: Automatically run release pipeline when github draft
 release is released

This releases the release artifacts and deploys the documentation.
---
 .github/workflows/release.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 450ed95f6..d4f014a95 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -2,6 +2,9 @@ name: Release
 
 on:
   workflow_dispatch:
+  release:
+    types: [released]
+
 
 jobs: