ci: add cachix workflow (#740)

This commit is contained in:
musjj 2024-02-28 00:45:41 +07:00 committed by GitHub
parent 82071bd06b
commit e31d93b7f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
.github/workflows/cachix.yml vendored Normal file
View file

@ -0,0 +1,26 @@
# Publish the Nix flake outputs to Cachix
name: Cachix
on:
push:
branches:
- main
jobs:
publish:
name: Publish Flake
runs-on: [ubuntu-latest, macos-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v25
- name: Authenticate with Cachix
uses: cachix/cachix-action@v14
with:
name: yazi
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build nix flake
run: nix build -L