Skip to content

flake.lock: Update (#59) #175

flake.lock: Update (#59)

flake.lock: Update (#59) #175

name: Build and Cache on Push
on:
push:
branches:
- main
- release-**
pull_request:
permissions:
contents: read
jobs:
build-and-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Cachix
uses: cachix/cachix-action@v15
with:
name: autofirma-nix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build flake packages
run: nix --accept-flake-config build --json .#autofirma .#configuradorfnmt .#dnieremote
- name: Run flake checks
run: nix --accept-flake-config flake check
- name: Push to Cachix
if: github.event_name == 'push'
run: nix --accept-flake-config build --json .#autofirma .#configuradorfnmt .#dnieremote | jq -r '.[].outputs | to_entries[].value' | cachix push autofirma-nix