Skip to content

Commit

Permalink
Fix packagesPath location for Hackage publishing (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
sellout committed Mar 9, 2024
2 parents babbe49 + 69d31fb commit 757caa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .config/project/hackage-publish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
pkgs,
self,
...
}: {
}: let
packagesPath = "\${{ runner.temp }}/packages/";
in {
services.github.workflow."hackage-publish.yml".text = lib.generators.toYAML {} {
name = "Publish release to Hackage";
on = {
Expand Down Expand Up @@ -33,12 +35,12 @@
cabal-version = pkgs.cabal-install.version;
};
}
{run = "cabal v2-sdist all";}
{run = "cabal v2-sdist --output-directory='${packagesPath}' all";}
{
uses = "haskell-actions/hackage-publish@v1";
"with" = {
inherit packagesPath;
hackageToken = "\${{ secrets.HACKAGE_AUTH_TOKEN }}";
packagesPath = "\${{ runner.temp }}/dist-newstyle/sdist/";
publish = false;
};
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hackage-publish.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 757caa4

Please sign in to comment.