From c1bd002f442d3a5a81127e2d2cc1ac0ac50a4f35 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas94@gmx.net>
Date: Sun, 8 Jan 2023 08:28:14 +0100
Subject: [PATCH] CI: add job that automatically updates the development
 release

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

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 900b50f..afeb64d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -151,3 +151,27 @@ jobs:
             scripts/colmap2nerf.py
             scripts/nsvf2nerf.py
             scripts/record3d2nerf.py
+
+  continuous_release:
+    name: "Update continuous development release"
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+    needs: [build_windows]
+    if: github.ref == 'refs/heads/master'
+    steps:
+      - name: Grab binary artifacts
+        uses: actions/download-artifact@v3
+      - name: Package
+        run: for i in */; do zip -r "${i%/}.zip" "$i"; done
+      - name: Update release
+        uses: ncipollo/release-action@v1
+        with:
+          allowUpdates: true
+          artifacts: "*.zip"
+          commit: "${{ github.sha }}"
+          omitBody: true
+          omitName: true
+          omitPrereleaseDuringUpdate: true
+          tag: "continuous"
+          updateOnlyUnreleased: true
-- 
GitLab