Skip to content

Commit bfac994

Browse files
committed
t
1 parent 64247fb commit bfac994

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,25 @@ jobs:
2222
run: dotnet build -c Release
2323
- name: Test
2424
run: dotnet test --no-restore
25-
- name: Publish
26-
run: dotnet publish --no-restore -c Release -o release /p:"AssemblyVersion=${{ inputs.version }};FileVersion=${{ inputs.version }};InformationalVersion=${{ inputs.version }}"
25+
- name: Publish linux-x64
26+
run: dotnet publish --no-restore -c Release -r linux-x64 --self-contained false -o release-linux /p:"AssemblyVersion=${{ inputs.version }};FileVersion=${{ inputs.version }};InformationalVersion=${{ inputs.version }}"
27+
- name: Publish win-x64
28+
run: dotnet publish --no-restore -c Release -r win-x64 --self-contained false -o release-win /p:"AssemblyVersion=${{ inputs.version }};FileVersion=${{ inputs.version }};InformationalVersion=${{ inputs.version }}"
2729
- name: Prepare artifacts
28-
run: cp {README,xvd_info,CHANGELOG}.md release
29-
- name: Generate zip
30-
run: zip -j XVDTool-${{ inputs.version }}.zip release/*
30+
run: |
31+
cp {README,xvd_info,CHANGELOG}.md release-linux
32+
cp {README,xvd_info,CHANGELOG}.md release-win
33+
- name: Generate zips
34+
run: |
35+
zip -j xvdtool-linux-x64.zip release-linux/*
36+
zip -j xvdtool-win32-x64.zip release-win/*
3137
- name: Create release
3238
uses: softprops/action-gh-release@v2
3339
with:
3440
name: Release v${{ inputs.version }}
3541
tag_name: v${{ inputs.version }}
3642
generate_release_notes: true
37-
files: 'XVDTool-*.zip'
43+
files: |
44+
xvdtool-linux-x64.zip
45+
xvdtool-win32-x64.zip
3846
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)