File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 1
- name : " Deploy to Artifacts"
2
- on : push
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ workflow_dispatch :
7
+
3
8
jobs :
4
9
deploy :
5
10
runs-on : ubuntu-latest
6
11
steps :
7
12
- uses : actions/checkout@v2
8
- - name : Install Dependence
13
+
14
+ - name : Install
9
15
run : yarn
16
+
10
17
- name : Build
11
18
run : yarn build
19
+
12
20
- name : Deploy Artifacts
13
21
uses : actions/upload-artifact@v1
14
22
with :
15
23
name : " oi-helper-${{ github.sha }}"
16
- path : dist/CPAssistant.user.js
17
- - name : Deploy Github Pages
24
+ path : dist/CPAssistant.js
25
+
26
+ - name : Deploy Pages
18
27
uses : peaceiris/actions-gh-pages@v3
19
28
with :
20
29
github_token : ${{ secrets.GITHUB_TOKEN }}
21
30
publish_dir : ./dist
22
31
publish_branch : dist
23
32
force_orphan : true
24
- - name : Reflash Jsdelivr CDN Cache
25
- run : curl https://purge.jsdelivr.net/gh/memset0/CPAssistant.js@dist/CPAssistant.user.js
33
+
34
+ - name : Reflash Jsdelivr Cache
35
+ run : curl https://purge.jsdelivr.net/gh/memset0/CPAssistant.js@dist/CPAssistant.js
Original file line number Diff line number Diff line change 6
6
"license" : " GPL-3.0-only" ,
7
7
"scripts" : {
8
8
"dev" : " vite" ,
9
- "build" : " vite build"
9
+ "build" : " vite build && mv dist/CPAssistant.js.user.js dist/CPAssistant.js "
10
10
},
11
11
"repository" : {
12
12
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments