Skip to content

Commit

Permalink
fix deployment keys
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusmi committed Feb 29, 2024
1 parent c40582c commit 0f62bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vps_server_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
HOSTNAME: ${{secrets.PROD_HOST}}
USER_NAME: ${{secrets.PROD_USER}}
SMTP_DEPLOYMENT_KEY: ${{secrets.SMTP_DEPLOYMENT_KEY}}
GITHUB_TOKEN: ${{secrets.SMTP_DEPLOYMENT_KEY}}
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} '
Expand All @@ -39,7 +39,7 @@ jobs:
mkdir smtp_server
cd smtp_server
git init
git remote add origin https://$SMTP_DEPLOYMENT_KEY@https://github.com/yunusmi/smtp_server.git
git remote add origin https://$GITHUB_TOKEN@github.com/yunusmi/smtp_server.git
git pull origin main
if [ $? -eq 0 ]; then
echo 'git pull success.'
Expand Down

0 comments on commit 0f62bc7

Please sign in to comment.