restrict the command for bot owners only and make it delete the webho… #39
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: Deploying the latest version of the bot | |
on: | |
push: | |
branches: [main] | |
jobs: | |
ssh: | |
name: Update on VPS using SSH | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run the update script | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
port: ${{ secrets.PORT }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
script: echo ${{ secrets.PASSWORD }} | ./project-pretender/update.sh |