diff --git a/.drone.yml b/.drone.yml index 880228d..8e8324a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,12 +7,15 @@ steps: commands: - nix develop -c make +- name: check + commands: + - nix flake check + - name: deploy commands: - nix run github:ambroisie/nix-config#drone-scp environment: - SCP_SOURCE: /drone/src/*.pdf - SCP_STRIP_COMPONENTS: 2 # Make sure the tarball doesn't contain leading path + SCP_SOURCE: '*.pdf' SCP_RM: true # Make sure only the newly generated files are left SCP_HOST: from_secret: ssh_host diff --git a/flake.nix b/flake.nix index fab424b..233f242 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,7 @@ }; outputs = { self, nixpkgs, futils } @ inputs: - futils.lib.eachSystem futils.lib.allSystems (system: + futils.lib.eachDefaultSystem (system: let inherit (nixpkgs) lib; pkgs = nixpkgs.legacyPackages.${system};