fix: deploy-static-site - remove the SSH key when the action ends

This commit is contained in:
cierzniak committed 2026-11-05 19:49:09 +01:00
1 parent 736ea364c2
commit aa3a967d21
2 files changed
+8

No files matched your search

+6
View File
@@ -82,3 +82,9 @@ runs:
# shellcheck disable=SC2029 # the id is meant to expand on the CI side
ssh prod activate "$RELEASE"
ssh prod list
# Runs even after a failed upload/activate, so a later step of the job cannot reuse the key.
- name: Remove SSH key
if: always()
shell: sh
run: rm -f ~/.ssh/deploy ~/.ssh/config ~/.ssh/known_hosts