Update .github/workflows/pages-deploy.yml
Some checks failed
Build and Deploy / build (push) Failing after 43s
Some checks failed
Build and Deploy / build (push) Failing after 43s
This commit is contained in:
parent
43aeb033ec
commit
2b94110af6
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pages-deploy.yml
vendored
8
.github/workflows/pages-deploy.yml
vendored
|
@ -28,8 +28,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt update -y
|
apt update -y
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
apt install sshpass
|
apt install sshpass openssh-client # ruby jekyll -y
|
||||||
# openssh-client ruby jekyll -y
|
|
||||||
|
|
||||||
- name: Health Check [CI TEST]
|
- name: Health Check [CI TEST]
|
||||||
run: |
|
run: |
|
||||||
|
@ -39,8 +38,9 @@ jobs:
|
||||||
echo "this is a text file" >> index.html
|
echo "this is a text file" >> index.html
|
||||||
date >> index.html
|
date >> index.html
|
||||||
cat index.html
|
cat index.html
|
||||||
export SSHPASS= ${{ secrets.SFTP_PASSWORD }}
|
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
|
||||||
sshpass -e sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
chmod 0400 ~/.passwd
|
||||||
|
sshpass -f ~/.passwd -e sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
||||||
put index.html www/index.html
|
put index.html www/index.html
|
||||||
bye
|
bye
|
||||||
!
|
!
|
||||||
|
|
Loading…
Reference in a new issue