We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddee10b commit a8353ceCopy full SHA for a8353ce
.DS_Store
0 Bytes
.github/workflows/main.yml
@@ -39,14 +39,21 @@ jobs:
39
# Runs a set of commands using the runners shell
40
- name: Npm build
41
run: npm run build
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
49
50
- name: Zip extension
51
if: ${{ github.event_name == 'workflow_dispatch' }}
52
run: |
53
+ ls -lrth
54
mv LICENSE ./dist/LeetcodeSessionManager
55
+ mv ./new_manifest.json ./dist/LeetcodeSessionManager/manifest.json
56
cd ./dist/LeetcodeSessionManager
- sed -i '/version/s/[^.]*$/'"${{ github.event.inputs.tag }}\"/" manifest.json
57
zip -r ../../LeetcodeSessionManager-${{ github.event.inputs.tag }}.zip .
58
59
- name: 'Create GitHub Release'
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments