2024-02-27 20:45:41 +03:00
|
|
|
name: Cachix
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Publish Flake
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-03-03 10:36:49 +03:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-27 20:45:41 +03:00
|
|
|
|
2024-03-03 10:36:49 +03:00
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v25
|
2024-02-27 20:45:41 +03:00
|
|
|
|
2024-03-03 10:36:49 +03:00
|
|
|
- name: Authenticate with Cachix
|
|
|
|
uses: cachix/cachix-action@v14
|
|
|
|
with:
|
|
|
|
name: yazi
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2024-02-27 20:45:41 +03:00
|
|
|
|
2024-03-03 10:36:49 +03:00
|
|
|
- name: Build Flake
|
|
|
|
run: nix build -L
|