Skip to content

Commit fa64d23

Browse files
committed
refactor: Update Cloudflare Workers deployment workflow to use new environment variable names
1 parent 9cebb77 commit fa64d23

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Deploy Cloudflare Worker and Run Discord Script
1+
name: Run Discord Script
22

33
on:
44
push:
55
branches:
6-
- main # Deploy on push to the main branch
6+
- main # Run on push to the main branch
77

88
jobs:
9-
deploy:
9+
run-discord:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -21,19 +21,6 @@ jobs:
2121
- name: Install dependencies
2222
run: npm install
2323

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-
3724
- name: Run Discord script
3825
env:
3926
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}

0 commit comments

Comments
 (0)