Update README.md #7
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
name: Build and redeploy bot on the remote server | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: pull and redeploy bot | |
uses: fifsky/[email protected] | |
with: | |
command: cd ~/app/PassphraseBot && echo "PASSPHRASEBOT_TOKEN=${{ secrets.PASSPHRASEBOT_TOKEN }}" > .env && git pull && ./run.sh | |
host: ${{ secrets.SSH_HOST }} | |
port: ${{ secrets.SSH_PORT }} | |
user: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} |