Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions #1102

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1.2
uses: carlosperate/download-file-action@v2.0.1
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.1
uses: vimtor/action-zip@v1.2
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.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: TwitchDownloaderGUI-Windows-x64.zip
path: TwitchDownloaderGUI-Windows-x64.zip
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-20.04
needs: [build-gui]
steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1
uses: vimtor/action-zip@v1.2
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows"
dest: TwitchDownloaderCLI-Windows-x64.zip

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

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

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

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

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

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

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

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

- name: Upload LinuxArm64 CLI Artifact Asset
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: TwitchDownloaderCLI-LinuxArm64.zip
path: TwitchDownloaderCLI-LinuxArm64.zip
Expand All @@ -135,7 +135,7 @@ jobs:
runs-on: macos-latest
needs: [build-cli]
steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1
uses: vimtor/action-zip@v1.2
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS"
dest: TwitchDownloaderCLI-MacOS-x64.zip

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

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

- name: Upload MacOSArm64 CLI Artifact Asset
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.3.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@v3.1.3
uses: actions/upload-artifact@v4.3.3
with:
name: upload_url
path: upload_url.txt
Expand All @@ -39,7 +39,7 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1.2
uses: carlosperate/download-file-action@v2.0.1
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.1
uses: vimtor/action-zip@v1.2
with:
files: "TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64"
dest: TwitchDownloaderGUI-${{ github.event.inputs.release_tag }}-Windows-x64.zip
Expand All @@ -75,7 +75,7 @@ jobs:

- name: Read URL
id: url
uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a
uses: juliangruber/read-file-action@1.1.7
with:
path: upload_url.txt

Expand All @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-20.04
needs: [create-release, build-gui]
steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1
uses: vimtor/action-zip@v1.2
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.1
uses: vimtor/action-zip@v1.2
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.1
uses: vimtor/action-zip@v1.2
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.1
uses: vimtor/action-zip@v1.2
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.1
uses: vimtor/action-zip@v1.2
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm64.zip
Expand All @@ -149,7 +149,7 @@ jobs:

- name: Read URL
id: url
uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a
uses: juliangruber/read-file-action@1.1.7
with:
path: upload_url.txt

Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
runs-on: macos-latest
needs: [create-release, build-cli]
steps:
- uses: actions/checkout@v2.7.0
- uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
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.1
uses: vimtor/action-zip@v1.2
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.1
uses: vimtor/action-zip@v1.2
with:
files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOSArm64"
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOSArm64.zip
Expand All @@ -238,7 +238,7 @@ jobs:

- name: Read URL
id: url
uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a
uses: juliangruber/read-file-action@1.1.7
with:
path: upload_url.txt

Expand Down
Loading