79
79
uses : actions-rs/toolchain@v1
80
80
with :
81
81
toolchain : stable
82
- target : x86_64-apple-darwin
83
82
profile : minimal
84
83
override : true
85
84
@@ -133,11 +132,8 @@ jobs:
133
132
134
133
release :
135
134
needs : build
136
- runs-on : ${{ matrix.os }}
135
+ runs-on : ubuntu-latest
137
136
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
138
- strategy :
139
- matrix :
140
- os : [windows-latest, macos-latest]
141
137
142
138
steps :
143
139
- uses : actions/checkout@v3
@@ -156,32 +152,4 @@ jobs:
156
152
id : package-version
157
153
shell : bash
158
154
run : |
159
- version=$(pnpm pkg get version | tr -d '"')
160
- echo "Version: $version"
161
- echo "version=$version" >> $GITHUB_OUTPUT
162
-
163
- - name : 下载构建产物
164
- uses : actions/download-artifact@v3
165
- with :
166
- name : ${{ matrix.os }}-build
167
- path : ${{ matrix.os }}-build
168
-
169
- - name : 列出下载的构建产物
170
- shell : bash
171
- run : |
172
- ls -R ${{ matrix.os }}-build/
173
-
174
- - name : 发布到 GitHub Releases
175
- uses : softprops/action-gh-release@v1
176
- with :
177
- tag_name : v${{ steps.package-version.outputs.version }}
178
- name : 发布 v${{ steps.package-version.outputs.version }}
179
- files : |
180
- ${{ matrix.os == 'macos-latest' && 'macos-latest-build/**/*.dmg' || '' }}
181
- ${{ matrix.os == 'windows-latest' && 'windows-latest-build/**/*.msi' || '' }}
182
- ${{ matrix.os == 'windows-latest' && 'windows-latest-build/**/*.exe' || '' }}
183
- ${{ matrix.os == 'ubuntu-latest' && 'ubuntu-latest-build/**/*.AppImage' || '' }}
184
- draft : false
185
- prerelease : false
186
- env :
187
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155
+ version=$(pnpm pkg get version | tr -d
0 commit comments