Skip to content

Commit

Permalink
Add sh setup secrets script
Browse files Browse the repository at this point in the history
  • Loading branch information
Morb0 committed Oct 3, 2023
1 parent 95f43aa commit 27e5c1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '' }}
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions Tools/corvax/setup_secrets.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27e5c1d

Please sign in to comment.