Skip to content

Commit 40455a2

Browse files
committed
release linux and osx
1 parent 6ec3ec9 commit 40455a2

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,43 @@ jobs:
2424
- name: Publish
2525
run: |
2626
cd BangumiNet
27-
dotnet publish -c Release -r win-x64 -p:Version=${GITHUB_REF_NAME#v} -o ../publish
27+
dotnet publish -c Release -r win-x64 -p:Version=${GITHUB_REF_NAME#v} -o ../publish-win-x64
28+
dotnet publish -c Release -r linux-x64 -p:Version=${GITHUB_REF_NAME#v} -o ../publish-linux-x64
29+
dotnet publish -c Release -r osx-x64 -p:Version=${GITHUB_REF_NAME#v} -o ../publish-osx-x64
2830
2931
- name: Create archive
3032
run: |
31-
cd publish
32-
zip -r ../${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip .
33+
cd publish-win-x64
34+
zip -r ../${{ github.event.repository.name }}-${{ github.ref_name }}-win-x64.zip .
35+
cd ../publish-linux-x64
36+
zip -r ../${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x64.zip .
37+
cd ../publish-osx-x64
38+
zip -r ../${{ github.event.repository.name }}-${{ github.ref_name }}-osx-x64.zip .
3339
shell: bash
3440

3541
- name: Upload artifact
3642
uses: actions/upload-artifact@v4
3743
with:
3844
name: app-archive
39-
path: ${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip
45+
path: ${{ github.event.repository.name }}-${{ github.ref_name }}-*.zip
4046

4147
release:
4248
needs: build
4349
runs-on: ubuntu-latest
4450

4551
steps:
4652
- name: Download build artifact
47-
uses: actions/download-artifact@v4
53+
uses: actions/download-artifact@v5
4854
with:
4955
name: app-archive
5056
path: .
5157

5258
- name: Create GitHub Release
5359
uses: softprops/action-gh-release@v2
5460
with:
55-
files: ${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip
61+
files: |
62+
${{ github.event.repository.name }}-${{ github.ref_name }}-win-x64.zip
63+
${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x64.zip
64+
${{ github.event.repository.name }}-${{ github.ref_name }}-osx-x64.zip
5665
env:
5766
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)