Skip to content

Commit

Permalink
Merge pull request #2 from YOUSIKI/cicd
Browse files Browse the repository at this point in the history
Add deployment job to CI workflow for Cloudflare Workers testing
  • Loading branch information
YOUSIKI authored Jan 18, 2025
2 parents 4678c00 + b5d5597 commit 822a92d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: read
deployments: write

jobs:
deploy:
Expand All @@ -33,3 +34,5 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
environment: production
command: deploy --minify
1 change: 1 addition & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ main = "src/index.ts"
compatibility_date = "2025-01-17"
compatibility_flags = ["nodejs_compat"]

workers_dev = true
routes = [{ pattern = "mikan.siki.moe", custom_domain = true }]

# Workers Logs
Expand Down

0 comments on commit 822a92d

Please sign in to comment.