feat: add Pterodactyl and Discord Bot sections to homepage #93
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: SSH and deploy | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| password: ${{ secrets.SSH_PASSWORD }} | |
| port: ${{ secrets.SSH_PORT || 22 }} | |
| script: | | |
| cd ${{ secrets.HOME_PATH }} | |
| git fetch origin main | |
| git clean -fd -e ads.txt -e robots.txt | |
| git reset --hard origin/main | |
| npm install | |
| pm2 stop main-web | |
| pm2 start main-web |