feat: add put-member-role command for assigning AUTO_ROLE_ID_4 to mem… #53
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 Test | |
| on: | |
| push: | |
| branches: | |
| - prod | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup SSH | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts | |
| - name: Deploy on server | |
| run: | | |
| ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} " | |
| cd /home/niv/TrackerBot-prod && | |
| chmod +x deploy-prod.sh && | |
| ./deploy-prod.sh | |
| " |