From 7426f258c38635cf11ced94ee5d351f889fa7987 Mon Sep 17 00:00:00 2001 From: Morb0 <14136326+Morb0@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:57:38 +0300 Subject: [PATCH] Revert "Use ssh-agent for publish workflow" This reverts commit 945ae46b707a1e0bcbbc489d1522deac85200d8f. --- .github/workflows/publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cdb1f9606f5..89cc2e3855e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,19 +21,16 @@ jobs: submodules: 'recursive' # Corvax-Secrets-Start - - name: Setup deploy key - uses: webfactory/ssh-agent@v0.4.1 - env: - SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }} - if: ${{ env.SSH_KEY != '' }} - with: - ssh-private-key: ${{ env.SSH_KEY }} - - name: Setup secrets env: SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }} if: ${{ env.SSH_KEY != '' }} run: | + mkdir ~/.ssh + echo "${{ secrets.SECRETS_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + echo "HOST *" > ~/.ssh/config + echo "StrictHostKeyChecking no" >> ~/.ssh/config git -c submodule.Secrets.update=checkout submodule update --init cp -R Secrets/Resources/Prototypes Resources/Prototypes/CorvaxSecrets cp -R Secrets/Resources/ServerPrototypes Resources/Prototypes/CorvaxSecretsServer