π docs: update usage guide #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands | |
uses: appleboy/ssh-action@v1.0.3 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: chupapee | |
password: ${{ secrets.SSH_PASSWORD }} | |
script: | | |
cd telegram-stories-viewer-bot | |
git checkout main | |
git fetch --all | |
git reset --hard origin/main | |
yarn deploy |