Skip to content

Commit 70d3c30

Browse files
refactor: update links to Surely Vue and remove obsolete pushToOSS script
1 parent 52ff17f commit 70d3c30

File tree

11 files changed

+10430
-142
lines changed

11 files changed

+10430
-142
lines changed

.github/workflows/cloudflare.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Build and Deploy to Cloudflare
2+
on:
3+
push:
4+
branches: [ main ]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
name: Build Application
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install dependencies
24+
run: npm install --force
25+
26+
- name: Build application
27+
run: npm run build
28+
29+
- name: Upload build artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: build-files
33+
path: dist/
34+
retention-days: 1
35+
36+
deploy:
37+
runs-on: ubuntu-latest
38+
name: Deploy to Cloudflare
39+
needs: build
40+
permissions:
41+
contents: read
42+
deployments: write
43+
steps:
44+
- name: Checkout (for config files)
45+
uses: actions/checkout@v5
46+
with:
47+
sparse-checkout: |
48+
wrangler.jsonc
49+
sparse-checkout-cone-mode: false
50+
51+
- name: Download build artifacts
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: build-files
55+
path: dist/
56+
57+
- name: Deploy (Workers + Static Assets)
58+
uses: cloudflare/[email protected]
59+
with:
60+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
61+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
62+
command: deploy --config wrangler.jsonc
63+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
<body>
4747
<div id="app"></div>
48-
<script src="https://aliyuncdn.antdv.com/common/docsearch.min_2.6.3.js"></script>
48+
<script src="https://www.antdv.com/docsearch.min_2.6.3.js"></script>
4949
<script type="module" src="/src/main.js"></script>
5050
<!-- Global site tag (gtag.js) - Google Analytics -->
5151
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151755889-1"></script>

0 commit comments

Comments
 (0)