diff --git a/deploy-static-site/action.yaml b/deploy-static-site/action.yaml index fc7883e..03ff96f 100644 --- a/deploy-static-site/action.yaml +++ b/deploy-static-site/action.yaml @@ -53,6 +53,14 @@ runs: NIXPKGS_ALLOW_UNFREE=1 nix profile install --impure nixpkgs#nomad nixpkgs#awscli2 nixpkgs#skopeo echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH + - name: Cache installed tools + if: env.NIX_SIGNING_KEY != '' + uses: https://git.toph.so/toph/ci-actions/push-nix-cache@main + with: + store-path: ${{ env.HOME }}/.nix-profile + s3-endpoint: ${{ inputs.s3-endpoint }} + s3-bucket: ${{ inputs.s3-bucket }} + - name: Build site shell: bash run: nix build ".#${{ inputs.flake-output }}" --out-link result-site