From 64349ab590583c7b435099b3542be2c1b9434b12 Mon Sep 17 00:00:00 2001 From: howardwu Date: Fri, 14 Aug 2020 00:21:35 -0700 Subject: [PATCH] Switch ssh --- .github/workflows/release.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fcde52aaa..c502150431 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,13 +99,20 @@ jobs: - name: Checkout uses: actions/checkout@v1 - - name: Load snarkOS - run: | - mkdir C:\Users\runneradmin\.ssh - echo $Env:SSH_KEY > C:\Users\runneradmin\.ssh\id_rsa - ssh -oStrictHostKeyChecking=no git@github.com - env: - SSH_KEY: ${{ secrets.SNARKOS_DEPLOY_KEY_WINDOWS }} +# - name: Load snarkOS +# run: | +# mkdir C:\Users\runneradmin\.ssh +# echo $Env:SSH_KEY > C:\Users\runneradmin\.ssh\id_rsa +# ssh -oStrictHostKeyChecking=no git@github.com +# env: +# 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 uses: actions-rs/toolchain@v1