Skip to content

Commit 2c80f36

Browse files
committed
Name the zip not the executable
1 parent 8d7c233 commit 2c80f36

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

.github/workflows/release.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,35 @@ jobs:
4545
- name: Build YouTubeCommentGrabber
4646
run: dotnet publish ./YouTubeCommentGrabber/YouTubeCommentGrabber.csproj -c Release -r ${{ matrix.rid }} --self-contained -p:PublishAot=true -p:Version=${{ steps.gitversion.outputs.FullSemVer }} -o ./publish/YouTubeCommentGrabber
4747

48+
- name: Zip GithubFeedbackGrabber Artifact
49+
run: |
50+
cd ./publish/GithubFeedbackGrabber
51+
if [[ "${{ matrix.rid }}" == "win-x64" ]]; then
52+
zip -r ghdump-${{ matrix.rid }}.zip ghdump.exe
53+
else
54+
zip -r ghdump-${{ matrix.rid }}.zip ghdump
55+
fi
56+
57+
- name: Zip YouTubeCommentGrabber Artifact
58+
run: |
59+
cd ./publish/YouTubeCommentGrabber
60+
if [[ "${{ matrix.rid }}" == "win-x64" ]]; then
61+
zip -r ytdump-${{ matrix.rid }}.zip ytdump.exe
62+
else
63+
zip -r ytdump-${{ matrix.rid }}.zip ytdump
64+
fi
65+
4866
- name: Upload GithubFeedbackGrabber Artifact
4967
uses: actions/upload-artifact@v3
5068
with:
5169
name: ghdump-${{ matrix.rid }}
52-
path: ./publish/GithubFeedbackGrabber/ghdump*
70+
path: ./publish/GithubFeedbackGrabber/ghdump-${{ matrix.rid }}.zip
5371

5472
- name: Upload YouTubeCommentGrabber Artifact
5573
uses: actions/upload-artifact@v3
5674
with:
5775
name: ytdump-${{ matrix.rid }}
58-
path: ./publish/YouTubeCommentGrabber/ytdump*
76+
path: ./publish/YouTubeCommentGrabber/ytdump-${{ matrix.rid }}.zip
5977

6078
create_release:
6179
runs-on: ubuntu-latest
@@ -99,16 +117,16 @@ jobs:
99117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100118
with:
101119
upload_url: ${{ needs.create_release.outputs.upload_url }}
102-
asset_path: ./publish/GithubFeedbackGrabber/ghdump${{ matrix.rid == 'win-x64' && '.exe' || '' }}
103-
asset_name: ghdump-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}
104-
asset_content_type: application/octet-stream
120+
asset_path: ./publish/GithubFeedbackGrabber/ghdump-${{ matrix.rid }}.zip
121+
asset_name: ghdump-${{ matrix.rid }}.zip
122+
asset_content_type: application/zip
105123

106124
- name: Upload YouTubeCommentGrabber Release Asset
107125
uses: actions/upload-release-asset@v1
108126
env:
109127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110128
with:
111129
upload_url: ${{ needs.create_release.outputs.upload_url }}
112-
asset_path: ./publish/YouTubeCommentGrabber/ytdump${{ matrix.rid == 'win-x64' && '.exe' || '' }}
113-
asset_name: ytdump-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}
114-
asset_content_type: application/octet-stream
130+
asset_path: ./publish/YouTubeCommentGrabber/ytdump-${{ matrix.rid }}.zip
131+
asset_name: ytdump-${{ matrix.rid }}.zip
132+
asset_content_type: application/zip

FeedbackFlow.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
GitVersion.yml = GitVersion.yml
1313
nuget.config = nuget.config
1414
README.md = README.md
15+
.github\workflows\release.yaml = .github\workflows\release.yaml
1516
EndProjectSection
1617
EndProject
1718
Global

0 commit comments

Comments
 (0)