Skip to content

Commit cc13e71

Browse files
committed
switch GH Actions from password to SSH key auth
1 parent 37a3133 commit cc13e71

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy-beta.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
with:
1414
host: ${{ secrets.SSH_HOST }}
1515
username: ${{ secrets.SSH_USER }}
16-
password: ${{ secrets.SSH_PASSWORD }}
16+
key: ${{ secrets.SSH_PRIVATE_KEY }}
1717
port: ${{ secrets.SSH_PORT || 22 }}
18+
host_key_checking: false
1819
script: |
1920
cd ${{ secrets.BETA_PATH }}
2021
cp .env /tmp/beta.env 2>/dev/null; cp port.txt /tmp/beta.port.txt 2>/dev/null

.github/workflows/deploy-main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
with:
1414
host: ${{ secrets.SSH_HOST }}
1515
username: ${{ secrets.SSH_USER }}
16-
password: ${{ secrets.SSH_PASSWORD }}
16+
key: ${{ secrets.SSH_PRIVATE_KEY }}
1717
port: ${{ secrets.SSH_PORT || 22 }}
18+
host_key_checking: false
1819
script: |
1920
cd ${{ secrets.MAIN_PATH }}
2021
cp .env /tmp/main.env 2>/dev/null; cp port.txt /tmp/main.port.txt 2>/dev/null

0 commit comments

Comments
 (0)