fix(deploy-static-site): remove nix profile install, tools provided by runner image
This commit is contained in:
parent
3f27f6b84f
commit
bcca32baae
1 changed files with 0 additions and 18 deletions
|
|
@ -47,24 +47,6 @@ inputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install tools
|
||||
shell: bash
|
||||
run: |
|
||||
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 != ''
|
||||
shell: bash
|
||||
run: |
|
||||
echo "${NIX_SIGNING_KEY}" > /tmp/nix-key
|
||||
nix store sign -k /tmp/nix-key --recursive "$HOME/.nix-profile"
|
||||
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
|
||||
shell: bash
|
||||
run: nix build ".#${{ inputs.flake-output }}" --out-link result-site
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue