From c6de29912b6d765389c7d0b234eb3e6921036ed7 Mon Sep 17 00:00:00 2001
From: Naxdy <naxdy@polskalemon.com>
Date: Mon, 25 Mar 2024 16:51:52 +0100
Subject: [PATCH] push derivations explicitly at the end

---
 .gitea/workflows/nightly-release.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitea/workflows/nightly-release.yml b/.gitea/workflows/nightly-release.yml
index 9a6b64a..bdfe6ec 100644
--- a/.gitea/workflows/nightly-release.yml
+++ b/.gitea/workflows/nightly-release.yml
@@ -4,6 +4,8 @@ on:
   push:
     branches: ["main"]
 
+# fleeb
+
 concurrency:
   group: main
   cancel-in-progress: true
@@ -31,9 +33,11 @@ jobs:
       - uses: actions/checkout@v4
       - name: Build firmware image
         run: |
-          attic watch-store "${{ vars.BINARY_CACHE_NAME }}" &
           nix build .# -o dist --print-build-logs
-          attic push "${{ vars.BINARY_CACHE_NAME }}" dist
+      - name: Push derivations to binary cache
+        run: |
+          cd /nix/store
+          attic push "${{ vars.BINARY_CACHE_NAME }}" $(ls /nix/store --ignore='*.drv' --ignore='*fake_nixpkgs*')
       - name: Publish nightly release
         uses: https://gitea.com/actions/gitea-release-action@v1.3.0
         with: