Skip to content

build(deps): bump cachix/cachix-action from 12 to 13 #108

build(deps): bump cachix/cachix-action from 12 to 13

build(deps): bump cachix/cachix-action from 12 to 13 #108

---
name: "Build and Deploy"
on: # yamllint disable-line rule:truthy
workflow_dispatch: # allows manual triggering
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
environment:
name: Homelab
url: "https://app.cachix.org/deploy/workspace/lab.thewagner.home/"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v3
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "extra-platforms = aarch64-linux"
- uses: cachix/cachix-action@v13
with:
name: wagdav
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check
run: nix flake check
- name: Build
run: nix build --print-build-logs .#cachix-deploy-spec
- name: Deploy
if: github.ref == 'refs/heads/master'
env:
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"
run: |
cachix push wagdav ./result
cachix deploy activate --async ./result