File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 77 # Triggers the workflow on push or pull request events but only for the master branch
88 push :
99 branches : [ master ]
10- pull_request :
11- branches : [ master ]
1210
1311 # Allows you to run this workflow manually from the Actions tab
1412 workflow_dispatch :
1513 inputs :
16- logLevel :
14+ tag :
1715 description : ' tag number'
1816 required : true
1917
4139 - name : Zip disk folder
4240 run : |
4341 cd ./dist/LeetcodeSessionManager
44- zip -r ../../LeetcodeSessionManager-$(node -p "require('./package.json').version").zip .
42+ zip -r ../../LeetcodeSessionManager-$(node -p "require('../.. /package.json').version").zip .
4543
46- - name : ' Upload Build Artifacts'
47- uses : actions/upload-artifact@v2
48- with :
49- name : dist
50- path : ./LeetcodeSessionManager*.zip
51-
52- release-content :
53- name : ' Create GitHub Release'
54- runs-on : ubuntu-latest
55- needs : [ build ]
56- env :
57- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58- steps :
59- - name : ' Download Presentation Artifacts'
60- uses : actions/download-artifact@v2
61- with :
62- name : dist
6344 - name : ' Create GitHub Release'
6445 uses : softprops/action-gh-release@v1
6546 with :
You can’t perform that action at this time.
0 commit comments