Skip to content

Commit 0314329

Browse files
committed
2 parents 11264c9 + 347e047 commit 0314329

File tree

1 file changed

+38
-11
lines changed

1 file changed

+38
-11
lines changed

.github/workflows/build.yml

+38-11
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: nuget restore TwitchDownloaderWPF.sln
5353

5454
- name: Build
55-
run: msbuild TwitchDownloaderWPF.sln /p:Configuration=Release /p:DebugType=None /p:DebugSymbols=false /p:AllowedReferenceRelatedFileExtensions=none /p:DeployOnBuild=true
55+
run: msbuild TwitchDownloaderWPF.sln /p:Configuration=Debug /p:DebugType=None /p:DebugSymbols=false /p:AllowedReferenceRelatedFileExtensions=none /p:DeployOnBuild=true
5656

5757
- name: Download File To Workspace
5858
# You may pin to the exact commit or the version.
@@ -65,10 +65,13 @@ jobs:
6565
file-name: ffmpeg.zip
6666

6767
- name: Bundle ffmpeg
68-
run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/ffmpeg.exe
69-
70-
- name: Rename/Zip Release
71-
run: cd TwitchDownloaderWPF/bin;ren Release "Twitch Downloader";cd ../../;tar -C "TwitchDownloaderWPF/bin" -a -c -f release.zip "Twitch Downloader"
68+
run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Debug/ffmpeg.exe
69+
70+
- name: Zip Release
71+
uses: papeloto/action-zip@v1
72+
with:
73+
files: "TwitchDownloaderWPF/bin/Debug"
74+
dest: release.zip
7275

7376
- name: Download URL
7477
uses: actions/download-artifact@v2
@@ -111,10 +114,31 @@ jobs:
111114
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxAlpine /p:DebugType=None /p:DebugSymbols=false
112115
- name: Build
113116
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm /p:DebugType=None /p:DebugSymbols=false
114-
115-
- name: Create ZIP Files
116-
run: tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Windows -a -c -f TwitchDownloaderCLI-Windows-x64.zip TwitchDownloaderCLI.exe; tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Linux -a -c -f TwitchDownloaderCLI-Linux-x64.zip TwitchDownloaderCLI; tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxAlpine -a -c -f TwitchDownloaderCLI-LinuxAlpine-x64.zip TwitchDownloaderCLI; tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxArm -a -c -f TwitchDownloaderCLI-LinuxArm.zip TwitchDownloaderCLI
117117

118+
- name: Zip Windows CLI
119+
uses: papeloto/action-zip@v1
120+
with:
121+
files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Windows/TwitchDownloaderCLI.exe
122+
dest: TwitchDownloaderCLI-Windows-x64.zip
123+
124+
- name: Zip Linux CLI
125+
uses: papeloto/action-zip@v1
126+
with:
127+
files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Linux/TwitchDownloaderCLI
128+
dest: TwitchDownloaderCLI-Linux-x64.zip
129+
130+
- name: Zip LinuxAlpine CLI
131+
uses: papeloto/action-zip@v1
132+
with:
133+
files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxAlpine/TwitchDownloaderCLI
134+
dest: TwitchDownloaderCLI-LinuxAlpine-x64.zip
135+
136+
- name: Zip LinuxArm CLI
137+
uses: papeloto/action-zip@v1
138+
with:
139+
files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxArm/TwitchDownloaderCLI
140+
dest: TwitchDownloaderCLI-LinuxArm.zip
141+
118142
- name: Download URL
119143
uses: actions/download-artifact@v2
120144
with:
@@ -179,9 +203,12 @@ jobs:
179203
run: dotnet restore
180204
- name: Build
181205
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOS /p:DebugType=None /p:DebugSymbols=false
182-
183-
- name: Create ZIP Files
184-
run: tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/MacOS -a -c -f TwitchDownloaderCLI-MacOS-x64.zip TwitchDownloaderCLI
206+
207+
- name: Zip Release
208+
uses: papeloto/action-zip@v1
209+
with:
210+
files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/MacOS/TwitchDownloaderCLI
211+
dest: TwitchDownloaderCLI-MacOS-x64.zip
185212

186213
- name: Download URL
187214
uses: actions/download-artifact@v2

0 commit comments

Comments
 (0)