don't publish to netlify

This commit is contained in:
Cyryl Płotnicki 2022-08-21 11:41:21 +01:00
parent 4f5de7b45a
commit 0c858a826d
2 changed files with 1 additions and 36 deletions

View file

@ -28,8 +28,3 @@ tasks:
ls -hal site.tar.gz
- sourcehut_upload: |
acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz
- netlify_publish: |
set +xv
cd blog
export NETLIFY_TOKEN=`cat ~/.netlify_token`
nix-shell --pure --keep NETLIFY_TOKEN --run 'netlify-deployer master 7a0944f0-cfd0-424b-8252-ca44fc950350 public'

View file

@ -10,45 +10,15 @@
outputs = { self, nixpkgs, utils, flake-compat }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
netlify-deployer = pkgs.python38Packages.buildPythonPackage rec {
pname = "netlify_deployer";
version = "0.5.2";
src = pkgs.python38Packages.fetchPypi {
inherit pname version;
sha256 =
"aae0092b36e7408281ad73269b446c701edaacecc8ba1a07cc85671e3ddfae6e";
};
propagatedBuildInputs = with pkgs;
with pkgs.python38Packages; [
requests
git
pbr
wheel
setuptools
];
doCheck = false;
};
customPython =
pkgs.python38.buildEnv.override { extraLibs = [ netlify-deployer ]; };
let pkgs = nixpkgs.legacyPackages."${system}";
in rec {
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs;
with pkgs.python38Packages; [
cacert
customPython
git
hugo
hut
pip
requests
virtualenv
];
};
});