fix(deploy-static-site): cache installed tools to S3 after first build
This commit is contained in:
parent
ae48e175e2
commit
8edf272e90
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue