Switch ssh

This commit is contained in:
howardwu 2020-08-14 00:21:35 -07:00
parent 2018e50b66
commit 64349ab590

View File

@ -99,13 +99,20 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Load snarkOS # - name: Load snarkOS
run: | # run: |
mkdir C:\Users\runneradmin\.ssh # mkdir C:\Users\runneradmin\.ssh
echo $Env:SSH_KEY > C:\Users\runneradmin\.ssh\id_rsa # echo $Env:SSH_KEY > C:\Users\runneradmin\.ssh\id_rsa
ssh -oStrictHostKeyChecking=no git@github.com # ssh -oStrictHostKeyChecking=no git@github.com
env: # env:
SSH_KEY: ${{ secrets.SNARKOS_DEPLOY_KEY_WINDOWS }} # SSH_KEY: ${{ secrets.SNARKOS_DEPLOY_KEY_WINDOWS }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v1
with:
key: ${{ secrets.SNARKOS_DEPLOY_KEY_WINDOWS }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1