-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use ssh-agent for publish workflow"
This reverts commit 945ae46.
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|