nows/.github/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: line 15: mapping values are not allowed in this context
2023-11-25 19:39:40 +08:00

24 lines
467 B
YAML

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install package
run: apt-get install -y expect
- name: Deploy
run: |
expect - <<EOF
spawn ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd ${{ secrets.PATH }} && git pull"
expect "password:"
send "${{ secrets.PASSWORD }}\r"
expect eof
EOF