Merge pull request #111 from StampyAI/chat-options #35
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: Deploy to Production Server | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update and Start Stampy Chat | |
uses: appleboy/[email protected] | |
with: | |
host: ${{secrets.PROD_HOST}} | |
username: ${{secrets.PROD_USERNAME}} | |
password: ${{secrets.PROD_PASSWORD}} | |
port: ${{secrets.PROD_PORT}} | |
script: | | |
pushd /var/www | |
./update.sh | |
service website restart | |
service backend restart | |
popd |