diff --git a/.github/workflows/auto_build.yml b/.github/workflows/auto_build.yml index e46fcb7..d1e11cb 100644 --- a/.github/workflows/auto_build.yml +++ b/.github/workflows/auto_build.yml @@ -2,9 +2,9 @@ name: auto_build on: push: - branches: [main] + branches: [release] pull_request: - branches: [main] + branches: [release] jobs: linux: diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml deleted file mode 100644 index 1336ac2..0000000 --- a/.github/workflows/debug.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: debug - -on: - workflow_dispatch: - inputs: - tag: - description: "test Tag" - required: true - -jobs: - linux: - name: Linux - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v2 - - - name: Setup Node.js environment - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Install Node.js modules - run: npm install - - - name: Update Node.js modules - run: npm update - - - name: Install vsce - run: npm i -g vsce - - - name: VSCE Packge - run: | - vsce package - VSIX_FILE=$(find ./ -name '*vscode-leetcode-problem-rating*.vsix') - echo "VSIX_FILE=$VSIX_FILE" >> $GITHUB_ENV - echo $VSIX_FILE - - uses: actions/upload-artifact@v2 - with: - name: vsix_file - path: ${{ env.VSIX_FILE }} - - windows: - name: Windows - runs-on: windows-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v2 - - - name: Setup Node.js environment - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Install Node.js modules - run: npm install - - - name: Update Node.js modules - run: npm update - - - name: Install vsce - run: npm i -g vsce - - - name: VSCE Packge - run: | - vsce package - - darwin: - name: macOS - runs-on: macos-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v2 - - - name: Setup Node.js environment - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Install Node.js modules - run: npm install - - - name: Update Node.js modules - run: npm update - - - name: Install vsce - run: npm i -g vsce - - - name: VSCE Packge - run: vsce package diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml new file mode 100644 index 0000000..5fac3e1 --- /dev/null +++ b/.github/workflows/update_version.yml @@ -0,0 +1,24 @@ +name: debug + +on: + workflow_dispatch: + inputs: + tag: + description: "test Tag" + required: true + +jobs: + linux: + name: Linux + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v2 + - run: | + ls + sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "update version" + git push diff --git a/src/controller/BricksViewController.ts b/src/controller/BricksViewController.ts index d807cd6..c8880a7 100644 --- a/src/controller/BricksViewController.ts +++ b/src/controller/BricksViewController.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/controller/BricksViewController.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Tuesday, November 22nd 2022, 11:04:59 am * Author: ccagml * diff --git a/src/controller/RemarkController.ts b/src/controller/RemarkController.ts index 55f1d12..77f3f29 100644 --- a/src/controller/RemarkController.ts +++ b/src/controller/RemarkController.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/controller/RemarkController.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 28th 2022, 3:29:37 pm * Author: ccagml * diff --git a/src/dao/bricksDao.ts b/src/dao/bricksDao.ts index 4f2c9f3..07b4925 100644 --- a/src/dao/bricksDao.ts +++ b/src/dao/bricksDao.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/dao/bricksDao.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Wednesday, November 23rd 2022, 4:36:38 pm * Author: ccagml * diff --git a/src/dao/groupDao.ts b/src/dao/groupDao.ts index 2b22211..3375128 100644 --- a/src/dao/groupDao.ts +++ b/src/dao/groupDao.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/dao/groupDao.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Wednesday, November 30th 2022, 9:47:36 am * Author: ccagml * diff --git a/src/rpc/actionChain/chainManager.ts b/src/rpc/actionChain/chainManager.ts index b11ae0c..3c38671 100644 --- a/src/rpc/actionChain/chainManager.ts +++ b/src/rpc/actionChain/chainManager.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/chainMgr.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/actionChain/chainNode/cache.ts b/src/rpc/actionChain/chainNode/cache.ts index caee5d7..92779e2 100644 --- a/src/rpc/actionChain/chainNode/cache.ts +++ b/src/rpc/actionChain/chainNode/cache.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/cache.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/actionChain/chainNode/core.ts b/src/rpc/actionChain/chainNode/core.ts index fa68770..bf8c6cd 100644 --- a/src/rpc/actionChain/chainNode/core.ts +++ b/src/rpc/actionChain/chainNode/core.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/core.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/actionChain/chainNode/leetcode.cn.ts b/src/rpc/actionChain/chainNode/leetcode.cn.ts index 1b4d66d..70b7e93 100644 --- a/src/rpc/actionChain/chainNode/leetcode.cn.ts +++ b/src/rpc/actionChain/chainNode/leetcode.cn.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/leetcode.cn.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/actionChain/chainNode/leetcode.ts b/src/rpc/actionChain/chainNode/leetcode.ts index 9aab1a7..8409f9f 100644 --- a/src/rpc/actionChain/chainNode/leetcode.ts +++ b/src/rpc/actionChain/chainNode/leetcode.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/leetcode.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/actionChain/chainNode/retry.ts b/src/rpc/actionChain/chainNode/retry.ts index 29c9754..c743130 100644 --- a/src/rpc/actionChain/chainNode/retry.ts +++ b/src/rpc/actionChain/chainNode/retry.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/actionChain/retry.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/factory/api/cacheApi.ts b/src/rpc/factory/api/cacheApi.ts index 3ad9f69..d87aaf9 100644 --- a/src/rpc/factory/api/cacheApi.ts +++ b/src/rpc/factory/api/cacheApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/cacheApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/pluginApi.ts b/src/rpc/factory/api/pluginApi.ts index 0b5c869..4d538c1 100644 --- a/src/rpc/factory/api/pluginApi.ts +++ b/src/rpc/factory/api/pluginApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/pluginApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/queryApi.ts b/src/rpc/factory/api/queryApi.ts index 1e9171a..150dcd3 100644 --- a/src/rpc/factory/api/queryApi.ts +++ b/src/rpc/factory/api/queryApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/queryApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/showApi.ts b/src/rpc/factory/api/showApi.ts index bfcdda8..fb31502 100644 --- a/src/rpc/factory/api/showApi.ts +++ b/src/rpc/factory/api/showApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/showApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/starApi.ts b/src/rpc/factory/api/starApi.ts index bbc08cd..0313d81 100644 --- a/src/rpc/factory/api/starApi.ts +++ b/src/rpc/factory/api/starApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/starApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/submitApi.ts b/src/rpc/factory/api/submitApi.ts index 371db75..b941d3f 100644 --- a/src/rpc/factory/api/submitApi.ts +++ b/src/rpc/factory/api/submitApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/submitApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/testApi.ts b/src/rpc/factory/api/testApi.ts index b9bf9f1..efea618 100644 --- a/src/rpc/factory/api/testApi.ts +++ b/src/rpc/factory/api/testApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/testApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/api/userApi.ts b/src/rpc/factory/api/userApi.ts index d676dd2..524aca0 100644 --- a/src/rpc/factory/api/userApi.ts +++ b/src/rpc/factory/api/userApi.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/api/userApi.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/factory/apiBase.ts b/src/rpc/factory/apiBase.ts index da53fce..6a48093 100644 --- a/src/rpc/factory/apiBase.ts +++ b/src/rpc/factory/apiBase.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/factory/apiBase.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Thursday, November 17th 2022, 11:44:14 am * Author: ccagml * diff --git a/src/rpc/utils/ReplyUtils.ts b/src/rpc/utils/ReplyUtils.ts index eac0c05..ce642bb 100644 --- a/src/rpc/utils/ReplyUtils.ts +++ b/src/rpc/utils/ReplyUtils.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/Response.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Monday, November 14th 2022, 4:04:31 pm * Author: ccagml * diff --git a/src/rpc/utils/commUtils.ts b/src/rpc/utils/commUtils.ts index a33dc03..19329e9 100644 --- a/src/rpc/utils/commUtils.ts +++ b/src/rpc/utils/commUtils.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/rpc/commUtils.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Wednesday, November 16th 2022, 4:50:55 pm * Author: ccagml * diff --git a/src/service/BricksDataService.ts b/src/service/BricksDataService.ts index 07d8abb..b9753be 100644 --- a/src/service/BricksDataService.ts +++ b/src/service/BricksDataService.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/service/BricksDataService.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Tuesday, November 22nd 2022, 10:42:49 am * Author: ccagml * diff --git a/src/service/StatusBarTimeService.ts b/src/service/StatusBarTimeService.ts index ae5b854..30506f8 100644 --- a/src/service/StatusBarTimeService.ts +++ b/src/service/StatusBarTimeService.ts @@ -1,6 +1,6 @@ /* * https://github.com/ccagml/vscode-leetcode-problem-rating/src/service/StatusBarTimeService.ts - * Path: /home/cc/vscode-leetcode-problem-rating + * Path: https://github.com/ccagml/vscode-leetcode-problem-rating * Created Date: Saturday, November 26th 2022, 2:14:53 pm * Author: ccagml *