File tree Expand file tree Collapse file tree 3 files changed +30
-12
lines changed
Expand file tree Collapse file tree 3 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ jobs:
6262 echo "productName=$productName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6363
6464 # tag打为.zip包
65- - name : package
66- id : package
67- if : startsWith(github.event.ref, 'refs/tags/')
68- shell : bash
69- run : |
65+ - name : package
66+ id : package
67+ if : startsWith(github.event.ref, 'refs/tags/')
68+ shell : bash
69+ run : |
7070 # 拷贝依赖
7171 mkdir bin
7272
@@ -100,13 +100,19 @@ jobs:
100100 ls -al
101101
102102 echo "-------------- debug 6 --------------"
103- cd bin
104- ls -al
105- pwd
106-
107- # tag上传Release
108- - name : uploadRelease
109- if : startsWith(github.event.ref, 'refs/tags/')
103+ cd bin
104+ ls -al
105+ pwd
106+
107+ - uses : actions/upload-artifact@v4
108+ if : startsWith(github.event.ref, 'refs/tags/')
109+ with :
110+ name : ${{ env.productName }}-macos
111+ path : ${{ env.productName }}.dmg
112+
113+ # tag上传Release
114+ - name : uploadRelease
115+ if : startsWith(github.event.ref, 'refs/tags/')
110116 uses : softprops/action-gh-release@v1
111117 env :
112118 GITHUB_TOKEN : ${{ secrets.upload_release }}
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ jobs:
102102 pwd
103103 ls -al ..
104104
105+ - uses : actions/upload-artifact@v4
106+ if : startsWith(github.event.ref, 'refs/tags/')
107+ with :
108+ name : ${{ env.productDebName }}-deb
109+ path : ../*.deb
110+
105111 # tag上传Release
106112 - name : uploadRelease
107113 if : startsWith(github.event.ref, 'refs/tags/')
Original file line number Diff line number Diff line change 8484 cd ..
8585 zip -q -r ${{ env.productName }}.zip bin/*
8686
87+ - uses : actions/upload-artifact@v4
88+ if : startsWith(github.event.ref, 'refs/tags/')
89+ with :
90+ name : ${{ env.productName }}-linux
91+ path : ${{ env.productName }}.zip
92+
8793 # tag上传Release
8894 - name : uploadRelease
8995 if : startsWith(github.event.ref, 'refs/tags/')
You can’t perform that action at this time.
0 commit comments