Skip to content

Make interaction reply ephemeral #49

Make interaction reply ephemeral

Make interaction reply ephemeral #49

Workflow file for this run

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 }}"