Skip to content

Commit

Permalink
Revert "Use ssh-agent for publish workflow"
Browse files Browse the repository at this point in the history
This reverts commit 945ae46.
  • Loading branch information
Morb0 committed Oct 23, 2023
1 parent e07457c commit 7426f25
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ jobs:
submodules: 'recursive'

# Corvax-Secrets-Start
- name: Setup deploy key
uses: webfactory/[email protected]
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
Expand Down

0 comments on commit 7426f25

Please sign in to comment.