Skip to content

Merge pull request #4 from loloop/mc/debug-firehose #19

Merge pull request #4 from loloop/mc/debug-firehose

Merge pull request #4 from loloop/mc/debug-firehose #19

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}}