Skip to content

Commit add5eb9

Browse files
authored
Update main.yml
1 parent 9ad88f0 commit add5eb9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ name: Build and Release
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
8-
push:
9-
branches: [ master ]
10-
117
# Allows you to run this workflow manually from the Actions tab
128
workflow_dispatch:
139
inputs:
@@ -39,11 +35,11 @@ jobs:
3935
- name: Zip disk folder
4036
run: |
4137
cd ./dist/LeetcodeSessionManager
42-
zip -r ../../LeetcodeSessionManager-$(node -p "require('../../package.json').version").zip .
38+
zip -r ../../LeetcodeSessionManager-${{ github.event.inputs.tag }}.zip .
4339
4440
- name: 'Create GitHub Release'
4541
uses: softprops/action-gh-release@v1
4642
with:
4743
files: ./LeetcodeSessionManager*.zip
4844
tag_name: v${{ github.run_number }}
49-
name: Release V${{ github.run_number }}
45+
name: Release V${{ github.event.inputs.tag }}

0 commit comments

Comments
 (0)