mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-24 12:19:00 +00:00
Update CI workflow
This commit is contained in:
parent
745e169bde
commit
bf73ee5f8f
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -1,8 +1,5 @@
|
||||
name: "Build and push to binary cache"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
name: "Build packages"
|
||||
on: [pull_request, push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@ -11,7 +8,9 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v16
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: cachix/cachix-action@v10
|
||||
- name: Prepare push to binary cache
|
||||
uses: cachix/cachix-action@v10
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
with:
|
||||
name: foo-dogsquared
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
Loading…
Reference in New Issue
Block a user