diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37f3328..c511ee4 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,11 +20,11 @@ jobs: sh build.sh - uses: ncipollo/release-action@v1 with: - artifacts: "result/pdf/*" - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: "result/site" - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + artifacts: "result/pdf/*,result/*.tar.gz" + # - name: Upload artifact + # uses: actions/upload-pages-artifact@v3 + # with: + # path: "result/site" + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/deploy.nix b/deploy.nix index 0c78328..f768ca3 100644 --- a/deploy.nix +++ b/deploy.nix @@ -1,14 +1,13 @@ -{ src, stdenv, ... }: +{ src, stdenv, gnutar, ... }: stdenv.mkDerivation { inherit src; pname = "GH-Action-builder"; version = "0.0.1"; - buildInputs = [ ]; + nativeBuildInputs = [ gnutar ]; installPhase = '' mkdir -p $out/pdf - mkdir -p $out/site mv *.pdf $out/pdf - mv * $out/site + tar -czf $out/site.tar.gz * ''; } \ No newline at end of file