fix(deploy-static-site): cache installed tools to S3 after first build

This commit is contained in:
Christopher Mühl 2026-02-18 22:02:29 +01:00
parent ae48e175e2
commit 8edf272e90
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -53,6 +53,14 @@ runs:
NIXPKGS_ALLOW_UNFREE=1 nix profile install --impure nixpkgs#nomad nixpkgs#awscli2 nixpkgs#skopeo NIXPKGS_ALLOW_UNFREE=1 nix profile install --impure nixpkgs#nomad nixpkgs#awscli2 nixpkgs#skopeo
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH 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 - name: Build site
shell: bash shell: bash
run: nix build ".#${{ inputs.flake-output }}" --out-link result-site run: nix build ".#${{ inputs.flake-output }}" --out-link result-site