update workflow

This commit is contained in:
Zichao Lin 2023-11-25 19:40:42 +08:00
parent b418d04400
commit e7706ee94d
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install package - name: Install expect
run: apt-get install -y expect run: apt-get install -y expect
- name: Deploy - name: Deploy
run: | run: |
expect - <<EOF expect - <<EOF
spawn ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd ${{ secrets.PATH }} && git pull" spawn ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd ${{ secrets.PATH }} && git pull"