SSH token env var

This commit is contained in:
2023-03-20 13:21:28 -07:00
parent 026372c2f0
commit 0b41d37b4a

View File

@ -65,9 +65,11 @@ jobs:
make make
- name: Deploying - name: Deploying
env:
DAWN_SSH_KEY: ${{ secrets.DAWN_SSH_KEY }}
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo -e "${SSH_KEY//_/\\n}" > ~/.ssh/id_rsa echo -e "${DAWN_SSH_KEY}" > ~/.ssh/id_rsa
chmod og-rwx ~/.ssh/id_rsa chmod og-rwx ~/.ssh/id_rsa
ssh-keyscan -H wish.moe >> ~/.ssh/known_hosts ssh-keyscan -H wish.moe >> ~/.ssh/known_hosts
ssh -t yourwishes@wish.moe "mkdir -p /home/yourwishes/Dawn/vita/debug" ssh -t yourwishes@wish.moe "mkdir -p /home/yourwishes/Dawn/vita/debug"