File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,21 @@ jobs:
39
39
# Runs a set of commands using the runners shell
40
40
- name : Npm build
41
41
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
+
43
49
# Runs a set of commands using the runners shell
44
50
- name : Zip extension
45
51
if : ${{ github.event_name == 'workflow_dispatch' }}
46
52
run : |
53
+ ls -lrth
47
54
mv LICENSE ./dist/LeetcodeSessionManager
55
+ mv ./new_manifest.json ./dist/LeetcodeSessionManager/manifest.json
48
56
cd ./dist/LeetcodeSessionManager
49
- sed -i '/version/s/[^.]*$/'"${{ github.event.inputs.tag }}\"/" manifest.json
50
57
zip -r ../../LeetcodeSessionManager-${{ github.event.inputs.tag }}.zip .
51
58
52
59
- name : ' Create GitHub Release'
You can’t perform that action at this time.
0 commit comments