nixos-configs/.forgejo/workflows/cachix.yml
matt1432 4b2a4bfb52
Some checks failed
Discord / discord commits (push) Has been skipped
Binary Cache / Build (push) Failing after 2m9s
fix(ci): add git token to update secrets repo
2023-12-25 16:32:58 -05:00

34 lines
805 B
YAML

name: Binary Cache
on: [push, pull_request, workflow_dispatch]
jobs:
nix:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v3
with:
submodules: recursive
- name: Setup-Nix
uses: https://github.com/cachix/install-nix-action@v24
- name: Install-nixci
uses: https://github.com/yaxitech/nix-install-pkgs-action@v3
with:
packages: "nixpkgs#nixci"
- name: Setup-cachix
uses: https://github.com/cachix/cachix-action@v12
with:
name: archives
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build-configs
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.PRIVATE_SSH_KEY }}'
nix flake update
nixci