push derivations explicitly at the end

This commit is contained in:
Naxdy 2024-03-25 16:51:52 +01:00
parent c8d9c1063e
commit c6de29912b
Signed by untrusted user: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -4,6 +4,8 @@ on:
push: push:
branches: ["main"] branches: ["main"]
# fleeb
concurrency: concurrency:
group: main group: main
cancel-in-progress: true cancel-in-progress: true
@ -31,9 +33,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build firmware image - name: Build firmware image
run: | run: |
attic watch-store "${{ vars.BINARY_CACHE_NAME }}" &
nix build .# -o dist --print-build-logs 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 - name: Publish nightly release
uses: https://gitea.com/actions/gitea-release-action@v1.3.0 uses: https://gitea.com/actions/gitea-release-action@v1.3.0
with: with: