-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.19 KB
/
commands.yml
File metadata and controls
45 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Deploy Discord Commands
on:
push:
branches:
- main
jobs:
deploy-commands:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# https://vercel.com/guides/corepack-errors-github-actions#1.-if-you%E2%80%99re-on-node-18+-or-newer
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build bot
run: pnpm build:bot
- name: Deploy Commands
run: pnpm register-commands
env:
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
INDEXABLE_CHANNEL_IDS: ''
REVALIDATE_SECRET: ''
WEB_URL: ''