-
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
lllzhmio
committed
Nov 12, 2024
1 parent
9cfb791
commit 1453f0e
Showing
3 changed files
with
53 additions
and
3 deletions.
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,49 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
tags: ["v*.*.*"] | ||
|
||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "build" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Upload to COS | ||
uses: TencentCloud/cos-action@v1 | ||
with: | ||
secret_id: ${{ secrets.TENCENT_SECRET_ID }} | ||
secret_key: ${{ secrets.TENCENT_SECRET_KEY }} | ||
cos_bucket: elion-demo-1308722423 | ||
cos_region: ap-shanghai | ||
local_path: dist | ||
clean: true | ||
|
||
- name: Refresh CDN | ||
uses: TencentCloud/cli-action@v1 | ||
with: | ||
secret_id: ${{ secrets.TENCENT_SECRET_ID }} | ||
secret_key: ${{ secrets.TENCENT_SECRET_KEY }} | ||
region: ap-shanghai | ||
commands: "cdn PurgePathCache --cli-unfold-argument --Paths https://elion-demo.xhpolaris.com/ --FlushType delete" | ||
output_format: json | ||
- name: Send Notification | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: xh-polaris/send-changelog@v1 | ||
with: | ||
webhook_url: ${{ secrets.WEBHOOK_URL }} | ||
title: 作文辅导系统更新日志 |
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
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,5 +1,5 @@ | ||
{ | ||
"name": "essay_tutoring", | ||
"name": "elion-demo", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
|