Skip to content
Snippets Groups Projects
Commit a38e1662 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

release automation

parent 020e8b1c
No related branches found
No related tags found
1 merge request!3Package metadata and other changes towards a public release
Pipeline #5206 passed
......@@ -51,5 +51,21 @@
}
}/bin/cabal-build-and-test";
};
apps.release = {
type = "app";
program = "${
pkgs.writeShellApplication {
name = "release";
runtimeInputs = with pkgs; [cabal-install];
text = ''
set -x
sdist=$(cabal sdist | tail -n 1)
haddocks=$(cabal haddock --haddock-for-hackage | tail -n 1)
cabal upload "$sdist"
cabal upload --documentation "$haddocks"
'';
}
}/bin/release";
};
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment