File tree Expand file tree Collapse file tree 1 file changed +26
-7
lines changed
Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Release
22
33on :
44 push :
55 branches : [ master ]
66 workflow_dispatch :
77
88jobs :
9- build :
9+ release :
1010 runs-on : ubuntu-latest
1111 steps :
12+ - name : Newline
13+ run : |
14+ NEWLINE=$(cat << EOF
15+ EOF)
16+ NEWLINE="${NEWLINE//'%'/'%25'}"
17+ NEWLINE="${NEWLINE//$'\n'/'%0A'}"
18+ NEWLINE="${NEWLINE//$'\r'/'%0D'}"
19+ echo "::set-output name=content::$NEWLINE"
20+ id : newline
21+
22+ - name : Current Date
23+ run : echo "::set-output name=content::$(date +'%Y-%m-%d %H:%M:%S')"
24+ id : now-name
25+
26+ - name : Current Date
27+ run : echo "::set-output name=content::$(date +'%Y-%m-%d-%H-%M-%S')"
28+ id : now-tag
29+
1230 - uses : actions/checkout@v2
1331 with :
1432 path : electron
@@ -29,17 +47,18 @@ jobs:
2947 with :
3048 version : 6.20.1
3149
32- - run : |
50+ - name : Build ASAR
51+ run : |
3352 cd browser
3453 pnpm i
3554 cd ../electron
3655 pnpm i
3756 pnpm run build
38-
57+
3958 - name : Release
4059 uses : softprops/action-gh-release@v0.1.13
4160 with :
42- name : ${{ github.sha }}
43- tag_name : ${{ github.ref }}
44- body : ${{ join(github.event.commits.*.message, '\n' ) }}
61+ name : ${{ steps.now-name.outputs.content }}
62+ tag_name : ${{ steps.now-tag.outputs.content }}
63+ body : ${{ join(github.event.commits.*.message, steps.newline.outputs.content ) }}
4564 files : " electron/dist/kernel.asar"
You can’t perform that action at this time.
0 commit comments