You will need a Hackage account for steps 4 & 5.
pgf2.cabalCHANGELOG.mdstack sdist (or cabal sdist)https://hackage.haskell.org/upload and upload the file ./.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/pgf2-x.y.z.tar.gz (or Cabal equivalent)./stack-haddock-upload.sh pgf2 x.y.z (compilation on Hackage's servers will fail because of missing C libraries)gf-core)