Skip to content

Commit b0d69ef

Browse files
committed
chore: fix filename error
1 parent 0eeaa90 commit b0d69ef

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1-
name: "Deploy to Artifacts"
2-
on: push
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
38
jobs:
49
deploy:
510
runs-on: ubuntu-latest
611
steps:
712
- uses: actions/checkout@v2
8-
- name: Install Dependence
13+
14+
- name: Install
915
run: yarn
16+
1017
- name: Build
1118
run: yarn build
19+
1220
- name: Deploy Artifacts
1321
uses: actions/upload-artifact@v1
1422
with:
1523
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
1827
uses: peaceiris/actions-gh-pages@v3
1928
with:
2029
github_token: ${{ secrets.GITHUB_TOKEN }}
2130
publish_dir: ./dist
2231
publish_branch: dist
2332
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "GPL-3.0-only",
77
"scripts": {
88
"dev": "vite",
9-
"build": "vite build"
9+
"build": "vite build && mv dist/CPAssistant.js.user.js dist/CPAssistant.js"
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)