Skip to content

Commit

Permalink
create ssh key directory
Browse files Browse the repository at this point in the history
  • Loading branch information
OiCMudkips committed Apr 16, 2024
1 parent c49bb9f commit b35de37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
env:
VICTORZHOUDEV_SSH_KEY_PASSPHRASE: ${{ secrets.VICTORZHOUDEV_SSH_KEY_PASSPHRASE }}
run: |
echo "${{ secrets.VICTORZHOUDEV_SSH_KEY }}" >> "${GITHUB_WORKSPACE}/identity/id_rsa"
DISPLAY=1 SSH_ASKPASS="${GITHUB_WORKSPACE}/.github/util/print_ssh_passphrase.sh" ssh-add "${GITHUB_WORKSPACE}/identity/id_rsa"
mkdir "${GITHUB_WORKSPACE}/identity/id_rsa"
echo "${{ secrets.VICTORZHOUDEV_SSH_KEY }}" >> "${GITHUB_WORKSPACE}/identiy/id_rsa"
DISPLAY=1 SSH_ASKPASS="${GITHUB_WORKSPACE}/.github/util/print_ssh_passphrase.sh" ssh-add "${GITHUB_WORKSPACE}/id_rsa"
- name: Deploy main website
run: |
ssh "${{ secrets.VICTORZHOUDEV_SSH_ADDRESS }}" "rm /home/public/*"
Expand Down

0 comments on commit b35de37

Please sign in to comment.