Make interaction reply ephemeral #49
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: Bot deployment | |
| on: | |
| push: | |
| branches: | |
| - v2 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Configure SSH | |
| uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Pull | |
| run: | | |
| cd ${{ github.workspace }} | |
| ssh-keyscan -t rsa ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts | |
| ssh ${{ secrets.SSH_USER }}@${{ secrets.SERVER_HOST }} "cd ${{ secrets.REPO_PATH }} && sudo git pull" | |
| - name: restart service | |
| run: | | |
| ssh ${{ secrets.SSH_USER }}@${{ secrets.SERVER_HOST }} "sudo systemctl restart ${{ secrets.SERVICE_NAME }}" |