File tree Expand file tree Collapse file tree 2 files changed +1439
-1257
lines changed
Expand file tree Collapse file tree 2 files changed +1439
-1257
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,17 @@ jobs:
2020 yarn build
2121 - name : Setup SSH
2222 run : |
23- echo "${{secrets.SSH_CDN_PRIVATE_KEY}}" > ~/.ssh/id_rsa
23+ mkdir -p ~/.ssh
24+ echo "${{secrets.SSH_CDN_PRIVATE_KEY}}" > ~/.ssh/id_ed25519
2425 echo "Host ${{ secrets.SSH_HOST }}" > ~/.ssh/config
2526 echo " User ${{ secrets.SSH_CDN_USERNAME }}" >> ~/.ssh/config
26- echo " IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
27- chmod 600 ~/.ssh/id_rsa
27+ echo " IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config
28+ echo " HostKeyAlgorithms ssh-ed25519" >> ~/.ssh/config
29+ chmod 600 ~/.ssh/id_ed25519
30+ ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
2831 - name : Update Website
2932 run : |
30- rsync -Pavz --delete -e "ssh -i $HOME /.ssh/id_rsa " .output/ ${{ secrets.SSH_CDN_USERNAME}}@${{secrets.SSH_HOST}}:/mnt/HDD/website/emulatorjs.org/
33+ rsync -Pavz --delete -e "ssh -i ~ /.ssh/id_ed25519 " .output/ ${{ secrets.SSH_CDN_USERNAME}}@${{secrets.SSH_HOST}}:/mnt/HDD/website/emulatorjs.org/
3134 - name : Restart Website
3235 run : |
33- ssh -i $HOME /.ssh/id_rsa ${{ secrets.SSH_CDN_USERNAME }}@${{ secrets.SSH_HOST }} "systemctl restart emulatorjs-org"
36+ ssh -i ~ /.ssh/id_ed25519 ${{ secrets.SSH_CDN_USERNAME }}@${{ secrets.SSH_HOST }} "systemctl restart emulatorjs-org"
You can’t perform that action at this time.
0 commit comments