Skip to content

Commit d7b24e5

Browse files
committed
deploy script
1 parent 1935026 commit d7b24e5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Bot
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "main"
8+
9+
jobs:
10+
sync_to_backend:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v3
16+
17+
- name: Build config template
18+
run: |
19+
cat > .env <<'EOF'
20+
TOKEN="${{ secrets.BOT_DISCORD_TOKEN }}"
21+
GITHUB_TOKEN="${{ secrets.BOT_GITHUB_TOKEN }}"
22+
EOF
23+
24+
- name: Deploy files
25+
uses: burnett01/[email protected]
26+
with:
27+
switches: -avz
28+
path: ./
29+
remote_path: ${{ secrets.DEPLOY_PATH }}
30+
remote_host: ${{ secrets.DEPLOY_HOST }}
31+
remote_user: ${{ secrets.DEPLOY_USER }}
32+
remote_key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)