fix(deploy-static-site): inline tool cache push to fix HOME expansion in with block
This commit is contained in:
parent
cc2f605905
commit
3f27f6b84f
1 changed files with 9 additions and 5 deletions
|
|
@ -55,11 +55,15 @@ runs:
|
||||||
|
|
||||||
- name: Cache installed tools
|
- name: Cache installed tools
|
||||||
if: env.NIX_SIGNING_KEY != ''
|
if: env.NIX_SIGNING_KEY != ''
|
||||||
uses: https://git.toph.so/toph/ci-actions/push-nix-cache@main
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
store-path: ${{ env.HOME }}/.nix-profile
|
echo "${NIX_SIGNING_KEY}" > /tmp/nix-key
|
||||||
s3-endpoint: ${{ inputs.s3-endpoint }}
|
nix store sign -k /tmp/nix-key --recursive "$HOME/.nix-profile"
|
||||||
s3-bucket: ${{ inputs.s3-bucket }}
|
rm /tmp/nix-key
|
||||||
|
nix copy --to "file:///tmp/nix-tools-cache" "$HOME/.nix-profile"
|
||||||
|
aws s3 sync /tmp/nix-tools-cache \
|
||||||
|
"s3://${{ inputs.s3-bucket }}" \
|
||||||
|
--endpoint-url "${{ inputs.s3-endpoint }}"
|
||||||
|
|
||||||
- name: Build site
|
- name: Build site
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue