File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy Cloudflare Worker and Run Discord Script
1
+ name : Run Discord Script
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - main # Deploy on push to the main branch
6
+ - main # Run on push to the main branch
7
7
8
8
jobs :
9
- deploy :
9
+ run-discord :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
21
21
- name : Install dependencies
22
22
run : npm install
23
23
24
- - name : Install Wrangler
25
- run : npm install -g wrangler
26
-
27
- - name : Extract repository name
28
- id : extract
29
- run : echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
30
-
31
- - name : Deploy to Cloudflare Workers
32
- env :
33
- CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
34
- CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35
- run : wrangler deploy ./index.js --name ${{ env.REPO_NAME }} --compatibility-date 2024-05-20
36
-
37
24
- name : Run Discord script
38
25
env :
39
26
DISCORD_BOT_TOKEN : ${{ secrets.DISCORD_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments