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