Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Apr 12, 2021
2 parents 11264c9 + 347e047 commit 0314329
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0314329

Please sign in to comment.