Skip to content

Commit

Permalink
chore: 🔧 [skip ci] add agenda-ics-worker code
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenull committed May 23, 2024
1 parent 4d33de2 commit 7bbb40a
Show file tree
Hide file tree
Showing 6 changed files with 807 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-agenda-ics-worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Agenda ICS Worker


# 手动点击执行
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required: true
default: 'production'

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist-ssr
.vscode
.temp
.cache
.wrangler

# bundle analytics
stats.html
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"dev": "vite --mode web",
"dev:worker": "wrangler dev",
"build:plugin": "tsc && vite build --mode plugin",
"build:web": "tsc && vite build --mode web",
"preview": "vite preview",
Expand Down Expand Up @@ -137,6 +138,7 @@
"vitest": "^0.34.3",
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.60",
"vuepress-plugin-copy-code2": "2.0.0-beta.173"
"vuepress-plugin-copy-code2": "2.0.0-beta.173",
"wrangler": "^3.57.1"
}
}
}
Loading

0 comments on commit 7bbb40a

Please sign in to comment.