File tree Expand file tree Collapse file tree 7 files changed +33
-7
lines changed
Expand file tree Collapse file tree 7 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1+ name : publish gh-page
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : checkout
13+ uses : actions/checkout@v2
14+ with :
15+ persist-credentials : false
16+
17+ - name : install and build
18+ run : |
19+ npm install -g pnpm@6.24.3
20+ pnpm install
21+ pnpm run build
22+ - name : deploy
23+ uses : JamesIves/github-pages-deploy-action@releases/v3
24+ with :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ BRANCH : gh-pages
27+ FOLDER : dist
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ node_modules
33* .log
44.DS_Store
55.idea
6+ dist
Original file line number Diff line number Diff line change 88 "url" : " git://github.com/WindrunnerMax/TKScript"
99 },
1010 "scripts" : {
11- "build" : " rollup -c "
11+ "build" : " ./build.sh "
1212 },
1313 "author" : " Czy" ,
1414 "license" : " MIT" ,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -ex
3+
4+ npx rollup -c
Original file line number Diff line number Diff line change 1919 "supportURL" : " https://github.com/WindrunnerMax/TKScript/issues" ,
2020 "license" : " GPL License" ,
2121 "installURL" : " https://github.com/WindrunnerMax/TKScript" ,
22- "updateURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/meta/copy-currency.meta.js" ,
23- "downloadURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/copy-currency.user.js" ,
2422 "run-at" : " document-start" ,
2523 "grant" : [
2624 " GM_registerMenuCommand" ,
Original file line number Diff line number Diff line change 7272 "supportURL" : " https://github.com/WindrunnerMax/TKScript/issues" ,
7373 "license" : " GPL License" ,
7474 "installURL" : " https://github.com/WindrunnerMax/TKScript" ,
75- "updateURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/meta/copy.meta.js" ,
76- "downloadURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/copy.user.js" ,
7775 "run-at" : " document-start" ,
7876 "grant" : [
7977 " unsafeWindow" ,
Original file line number Diff line number Diff line change 1515 "license" : " MIT License" ,
1616 "supportURL" : " https://github.com/WindrunnerMax/TKScript/issues" ,
1717 "installURL" : " https://github.com/WindrunnerMax/TKScript" ,
18- "updateURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/meta/site-director.meta.js" ,
19- "downloadURL" : " https://cdn.jsdelivr.net/gh/WindrunnerMax/TKScript@master/dist/site-director.user.js" ,
2018 "grant" : [
2119 " unsafeWindow" ,
2220 " GM_xmlhttpRequest"
You can’t perform that action at this time.
0 commit comments