diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a100f1b..dc831325 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: run: nuget restore TwitchDownloaderWPF.sln - name: Build - run: msbuild TwitchDownloaderWPF.sln /p:Configuration=Release /p:DebugType=None /p:DebugSymbols=false /p:AllowedReferenceRelatedFileExtensions=none /p:DeployOnBuild=true + run: msbuild TwitchDownloaderWPF.sln /p:Configuration=Debug /p:DebugType=None /p:DebugSymbols=false /p:AllowedReferenceRelatedFileExtensions=none /p:DeployOnBuild=true - name: Download File To Workspace # You may pin to the exact commit or the version. @@ -65,10 +65,13 @@ jobs: file-name: ffmpeg.zip - name: Bundle ffmpeg - run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/ffmpeg.exe - - - name: Rename/Zip Release - run: cd TwitchDownloaderWPF/bin;ren Release "Twitch Downloader";cd ../../;tar -C "TwitchDownloaderWPF/bin" -a -c -f release.zip "Twitch Downloader" + run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Debug/ffmpeg.exe + + - name: Zip Release + uses: papeloto/action-zip@v1 + with: + files: "TwitchDownloaderWPF/bin/Debug" + dest: release.zip - name: Download URL uses: actions/download-artifact@v2 @@ -111,10 +114,31 @@ jobs: run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxAlpine /p:DebugType=None /p:DebugSymbols=false - name: Build run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm /p:DebugType=None /p:DebugSymbols=false - - - name: Create ZIP Files - 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 + - name: Zip Windows CLI + uses: papeloto/action-zip@v1 + with: + files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Windows/TwitchDownloaderCLI.exe + dest: TwitchDownloaderCLI-Windows-x64.zip + + - name: Zip Linux CLI + uses: papeloto/action-zip@v1 + with: + files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/Linux/TwitchDownloaderCLI + dest: TwitchDownloaderCLI-Linux-x64.zip + + - name: Zip LinuxAlpine CLI + uses: papeloto/action-zip@v1 + with: + files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxAlpine/TwitchDownloaderCLI + dest: TwitchDownloaderCLI-LinuxAlpine-x64.zip + + - name: Zip LinuxArm CLI + uses: papeloto/action-zip@v1 + with: + files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/LinuxArm/TwitchDownloaderCLI + dest: TwitchDownloaderCLI-LinuxArm.zip + - name: Download URL uses: actions/download-artifact@v2 with: @@ -179,9 +203,12 @@ jobs: run: dotnet restore - name: Build run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOS /p:DebugType=None /p:DebugSymbols=false - - - name: Create ZIP Files - run: tar -C TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/MacOS -a -c -f TwitchDownloaderCLI-MacOS-x64.zip TwitchDownloaderCLI + + - name: Zip Release + uses: papeloto/action-zip@v1 + with: + files: TwitchDownloaderCLI/bin/Release/netcoreapp3.1/publish/MacOS/TwitchDownloaderCLI + dest: TwitchDownloaderCLI-MacOS-x64.zip - name: Download URL uses: actions/download-artifact@v2