mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
Add ssh key to known_hosts in wikitree deployment
This commit is contained in:
parent
8b9d826b8e
commit
57cf424614
2
.github/workflows/deploy-wikitree-apps.yml
vendored
2
.github/workflows/deploy-wikitree-apps.yml
vendored
@ -19,6 +19,8 @@ jobs:
|
||||
- run: npm run cy:start-and-run
|
||||
- name: Install lftp
|
||||
run: sudo apt-get install -y lftp
|
||||
- name: Set up ssh
|
||||
run: echo 'apps.wikitree.com,18.233.253.116 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCKTIpheJq3YwWPqfKIMP+y4/ctpZwBcsEE0OoE4LYDbDckV57kGICKxuQi76t5sJIOTO9zhbZy5wbXNDIB1REM=' >> ~/.ssh/known_hosts
|
||||
- run: npm run deploy-wikitree
|
||||
env:
|
||||
LFTP_PASSWORD: ${{ secrets.WIKITREE_PASSWORD }}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
echo Copying files...
|
||||
lftp -d sftp://wiech13:${LFTP_PASSWORD}@apps.wikitree.com << EOF
|
||||
lftp --env-password sftp://wiech13@apps.wikitree.com << EOF
|
||||
mkdir www/topola-viewer.new
|
||||
mirror -R -p build/ www/topola-viewer.new/
|
||||
rm -r www/topola-viewer.old
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user