From 27e5c1d8f5522b12ed27e91aa6bd2c6cb5586f12 Mon Sep 17 00:00:00 2001 From: Morb0 <14136326+Morb0@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:24:25 +0300 Subject: [PATCH] Add sh setup secrets script --- .github/workflows/publish.yml | 7 ++----- Tools/corvax/setup_secrets.sh | 6 ++++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 Tools/corvax/setup_secrets.sh diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f08600918bc..ba441514046 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: submodules: 'recursive' # Corvax-Secrets-Start - - name: Pull secrets + - name: Setup secrets env: SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }} if: ${{ env.SSH_KEY != '' }} @@ -32,10 +32,7 @@ jobs: echo "HOST *" > ~/.ssh/config echo "StrictHostKeyChecking no" >> ~/.ssh/config git -c submodule.Secrets.update=checkout submodule update --init - - - name: Setup secrets - shell: pwsh - run: .\Tools\corvax\setup_secrets.ps1 + sh ./Tools/corvax/setup_secrets.sh # Corvax-Secrets-End - name: Setup .NET Core diff --git a/Tools/corvax/setup_secrets.sh b/Tools/corvax/setup_secrets.sh new file mode 100644 index 00000000000..7fe7ccc94d4 --- /dev/null +++ b/Tools/corvax/setup_secrets.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +ln -s Secrets/Resources/Prototypes Resources/Prototypes/CorvaxSecrets +ln -s Secrets/Resources/ServerPrototypes Resources/Prototypes/CorvaxSecretsServer +ln -s Secrets/Resources/Locale Resources/Locale/ru-RU/corvax-secrets +ln -s Secrets/Resources/Textures Resources/Textures/CorvaxSecrets