Skip to content

Merge pull request #21 from loloop/mc/fix-telegram #36

Merge pull request #21 from loloop/mc/fix-telegram

Merge pull request #21 from loloop/mc/fix-telegram #36

Workflow file for this run

on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: configure-ssh
run: |
mkdir -p ~/.ssh/
echo "$key" > ~/.ssh/server.key
chmod 400 ~/.ssh/server.key
cat >>~/.ssh/config <<END
Host server
HostName $host
User $username
IdentityFile ~/.ssh/server.key
StrictHostKeyChecking no
END
- name: run-deploy-script
run: ssh server 'cd LandinhoBot; sh deploy.sh'
env:
host: ${{secrets.SSH_HOST}}
username: ${{secrets.SSH_USERNAME}}
key: ${{secrets.SSH_KEY}}