Skip to content

Commit

Permalink
Update github actions (#956)
Browse files Browse the repository at this point in the history
* Update github actions

* Typo
  • Loading branch information
ScrubN authored Jan 23, 2024
1 parent e3eb1a5 commit 6046ba1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Download FFmpeg To Workspace
# You may pin to the exact commit or the version.
# uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc
uses: carlosperate/download-file-action@v1.0.3
uses: carlosperate/download-file-action@v1.1.2
with:
# URL of the file to download
file-url: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
Expand All @@ -38,13 +38,13 @@ jobs:
run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe

- name: Zip Windows GUI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64"
dest: TwitchDownloaderGUI-Windows-x64.zip

- name: Upload Windows GUI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderGUI-Windows-x64.zip
path: TwitchDownloaderGUI-Windows-x64.zip
Expand All @@ -53,9 +53,9 @@ jobs:
runs-on: ubuntu-20.04
needs: [build-gui]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -72,61 +72,61 @@ jobs:
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm64 -p:DebugType=Portable

- name: Zip Windows CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows"
dest: TwitchDownloaderCLI-Windows-x64.zip

- name: Zip Linux CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux"
dest: TwitchDownloaderCLI-Linux-x64.zip

- name: Zip LinuxAlpine CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine"
dest: TwitchDownloaderCLI-LinuxAlpine-x64.zip

- name: Zip LinuxArm CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm"
dest: TwitchDownloaderCLI-LinuxArm.zip

- name: Zip LinuxArm64 CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64"
dest: TwitchDownloaderCLI-LinuxArm64.zip

- name: Upload Windows CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-Windows-x64.zip
path: TwitchDownloaderCLI-Windows-x64.zip

- name: Upload Linux CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-Linux-x64.zip
path: TwitchDownloaderCLI-Linux-x64.zip

- name: Upload LinuxAlpine CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-LinuxAlpine-x64.zip
path: TwitchDownloaderCLI-LinuxAlpine-x64.zip

- name: Upload LinuxArm CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-LinuxArm.zip
path: TwitchDownloaderCLI-LinuxArm.zip

- name: Upload LinuxArm64 CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-LinuxArm64.zip
path: TwitchDownloaderCLI-LinuxArm64.zip
Expand All @@ -135,9 +135,9 @@ jobs:
runs-on: macos-latest
needs: [build-cli]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -148,25 +148,25 @@ jobs:
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOSArm64 -p:DebugType=Portable

- name: Zip MacOS CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS"
dest: TwitchDownloaderCLI-MacOS-x64.zip

- name: Zip MacOSArm64 CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOSArm64"
dest: TwitchDownloaderCLI-MacOSArm64.zip

- name: Upload MacOS CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-MacOS-x64.zip
path: TwitchDownloaderCLI-MacOS-x64.zip

- name: Upload MacOSArm64 CLI Artifact Asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.3
with:
name: TwitchDownloaderCLI-MacOSArm64.zip
path: TwitchDownloaderCLI-MacOSArm64.zip
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
expr "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt
- name: Upload URL
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.3
with:
name: upload_url
path: upload_url.txt
Expand All @@ -39,9 +39,9 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Download FFmpeg To Workspace
# You may pin to the exact commit or the version.
# uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc
uses: carlosperate/download-file-action@v1.0.3
uses: carlosperate/download-file-action@v1.1.2
with:
# URL of the file to download
file-url: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
Expand All @@ -63,7 +63,7 @@ jobs:
run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe

- name: Zip Windows GUI Release Asset
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64"
dest: TwitchDownloaderGUI-${{ github.event.inputs.release_tag }}-Windows-x64.zip
Expand Down Expand Up @@ -94,9 +94,9 @@ jobs:
runs-on: ubuntu-20.04
needs: [create-release, build-gui]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -113,31 +113,31 @@ jobs:
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm64 -p:DebugType=Embedded

- name: Zip Windows CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Windows-x64.zip

- name: Zip Linux CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Linux-x64.zip

- name: Zip LinuxAlpine CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxAlpine-x64.zip

- name: Zip LinuxArm CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm.zip

- name: Zip LinuxArm64 CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm64.zip
Expand Down Expand Up @@ -207,9 +207,9 @@ jobs:
runs-on: macos-latest
needs: [create-release, build-cli]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.7.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
Expand All @@ -220,13 +220,13 @@ jobs:
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOSArm64 -p:DebugType=Embedded

- name: Zip MacOS CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOS-x64.zip

- name: Zip MacOSArm64 CLI
uses: vimtor/action-zip@v1
uses: vimtor/action-zip@v1.1
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOSArm64"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOSArm64.zip
Expand Down

0 comments on commit 6046ba1

Please sign in to comment.