Update CI workflow

This commit is contained in:
Gabriel Arazas 2022-02-02 12:41:31 +08:00
parent 745e169bde
commit bf73ee5f8f

View File

@ -1,8 +1,5 @@
name: "Build and push to binary cache" name: "Build packages"
on: on: [pull_request, push]
push:
branches:
- master
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -11,7 +8,9 @@ jobs:
- uses: cachix/install-nix-action@v16 - uses: cachix/install-nix-action@v16
with: with:
nix_path: nixpkgs=channel:nixos-unstable 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: with:
name: foo-dogsquared name: foo-dogsquared
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'