File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,21 @@ jobs:
3939 # Runs a set of commands using the runners shell
4040 - name : Npm build
4141 run : npm run build
42-
42+
43+ # Runs a set of commands using the runners shell
44+ - name : replace version
45+ if : ${{ github.event_name == 'workflow_dispatch' }}
46+ run : |
47+ jq '.version="${{ github.event.inputs.tag }}"' ./dist/LeetcodeSessionManager/manifest.json > ./new_manifest.json
48+
4349 # Runs a set of commands using the runners shell
4450 - name : Zip extension
4551 if : ${{ github.event_name == 'workflow_dispatch' }}
4652 run : |
53+ ls -lrth
4754 mv LICENSE ./dist/LeetcodeSessionManager
55+ mv ./new_manifest.json ./dist/LeetcodeSessionManager/manifest.json
4856 cd ./dist/LeetcodeSessionManager
49- sed -i '/version/s/[^.]*$/'"${{ github.event.inputs.tag }}\"/" manifest.json
5057 zip -r ../../LeetcodeSessionManager-${{ github.event.inputs.tag }}.zip .
5158
5259 - name : ' Create GitHub Release'
You can’t perform that action at this time.
0 commit comments