chore: bump version to v1.2.5 [slidbar] #470
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 Beta | |
| on: | |
| push: | |
| branches: [beta] | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: SSH and deploy | |
| uses: appleboy/ssh-action@v1.2.0 | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| port: ${{ secrets.SSH_PORT || 22 }} | |
| host_key_checking: false | |
| script: | | |
| cd ${{ secrets.BETA_PATH }} | |
| cp .env /tmp/beta.env 2>/dev/null; cp port.txt /tmp/beta.port.txt 2>/dev/null | |
| git fetch origin --prune | |
| git checkout beta | |
| git reset --hard origin/beta | |
| cp /tmp/beta.env .env 2>/dev/null; cp /tmp/beta.port.txt port.txt 2>/dev/null | |
| grep 'discord.zero-host.org' public/js/app.js || echo "⚠ DISCORD LINK NOT FOUND IN FILE" | |
| head -20 port.txt 2>/dev/null || echo "⚠ port.txt missing or empty" | |
| npm install | |
| pm2 restart beta |