Skip to content

Commit 38937b6

Browse files
author
richardson
committed
重新调整代码,让系统能发布,试试看
1 parent 6e9d894 commit 38937b6

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

.github/workflows/build-and-release.yml

+2-34
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ jobs:
7979
uses: actions-rs/toolchain@v1
8080
with:
8181
toolchain: stable
82-
target: x86_64-apple-darwin
8382
profile: minimal
8483
override: true
8584

@@ -133,11 +132,8 @@ jobs:
133132
134133
release:
135134
needs: build
136-
runs-on: ${{ matrix.os }}
135+
runs-on: ubuntu-latest
137136
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
138-
strategy:
139-
matrix:
140-
os: [windows-latest, macos-latest]
141137

142138
steps:
143139
- uses: actions/checkout@v3
@@ -156,32 +152,4 @@ jobs:
156152
id: package-version
157153
shell: bash
158154
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

Comments
 (0)