-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
github: | ||
- YunLeFun | ||
- YunYouJun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# reference for Tencent EdgeOne Purge | ||
name: TEO Purge | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
teo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: pnpm | ||
|
||
- name: Install | ||
run: pnpm install | ||
|
||
- name: Install TCCLI | ||
run: sudo pip install tccli | ||
|
||
- name: Configure TCCLI | ||
run: | | ||
tccli configure set secretId ${{ secrets.TENCENT_CLOUD_SECRET_ID }} | ||
tccli configure set secretKey ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} | ||
tccli configure set region ap-shanghai | ||
- name: Wait Cloudflare Pages Deploy | ||
run: echo 'Waiting for Cloudflare Pages Deploy' | ||
|
||
# https://console.cloud.tencent.com/edgeone/zones | ||
# DO NOT purge_host 允许旧流量缓存,缓存时间在 Tencent Cloud EdgeOne 规则中设置 | ||
# 只清楚入口 URL | ||
# https://cloud.tencent.com/document/product/1552/80703 | ||
- name: Purge TEO | ||
# 目录刷新 — 仅刷新目录下发生变更的资源 | ||
run: tccli teo CreatePurgeTask --ZoneId $ZONE_ID --Type purge_prefix --Targets '["https://www.yunyoujun.cn/"]' | ||
env: | ||
ZONE_ID: zone-32usfya3lb5o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# .github | ||
:octocat: The default community health files for GitHub https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#creating-a-repository-for-default-files | ||
|
||
:octocat: The default community health files for GitHub | ||
|
||
See [Creating a default community health file | GitHub Docs](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#creating-a-repository-for-default-files). | ||
|
||
## LICENSE | ||
|
||
[YunLeFun](https://github.com/YunLeFun) |