Skip to content

Commit

Permalink
Fix release workflow for real this time (#1118)
Browse files Browse the repository at this point in the history
* Speed up workflows by skipping manual restore command

* Please build

* Set download-artifact and upload-artifact to v4
  • Loading branch information
ScrubN authored Jun 30, 2024
1 parent 26d91ac commit e5dc67d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderWPF
- name: Build Windows GUI
run: dotnet publish TwitchDownloaderWPF -p:PublishProfile=Windows -p:DebugType=Portable

Expand All @@ -44,7 +42,7 @@ jobs:
dest: TwitchDownloaderGUI-Windows-x64.zip

- name: Upload Windows GUI Artifact Asset
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v4
with:
name: TwitchDownloaderGUI-Windows-x64.zip
path: TwitchDownloaderGUI-Windows-x64.zip
Expand All @@ -58,8 +56,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderCLI
- name: Build Windows CLI
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=Windows -p:DebugType=Portable
- name: Build Linux CLI
Expand Down Expand Up @@ -102,31 +98,31 @@ jobs:
dest: TwitchDownloaderCLI-LinuxArm64.zip

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

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

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

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

- name: Upload LinuxArm64 CLI Artifact Asset
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v4
with:
name: TwitchDownloaderCLI-LinuxArm64.zip
path: TwitchDownloaderCLI-LinuxArm64.zip
Expand All @@ -140,8 +136,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderCLI
- name: Build MacOS CLI
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOS -p:DebugType=Portable
- name: Build MacOSArm64 CLI
Expand All @@ -160,13 +154,13 @@ jobs:
dest: TwitchDownloaderCLI-MacOSArm64.zip

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

- name: Upload MacOSArm64 CLI Artifact Asset
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v4
with:
name: TwitchDownloaderCLI-MacOSArm64.zip
path: TwitchDownloaderCLI-MacOSArm64.zip
22 changes: 8 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
run: |
expr "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt
- name: Upload URL
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v4
with:
name: upload_url
name: upload_url.txt
path: upload_url.txt

build-gui:
Expand All @@ -44,8 +44,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderWPF
- name: Build Windows GUI
run: dotnet publish TwitchDownloaderWPF -p:PublishProfile=Windows -p:DebugType=Embedded

Expand All @@ -69,9 +67,9 @@ jobs:
dest: TwitchDownloaderGUI-${{ github.event.inputs.release_tag }}-Windows-x64.zip

- name: Download URL
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: upload_url
name: upload_url.txt

- name: Read URL
id: url
Expand Down Expand Up @@ -99,8 +97,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderCLI
- name: Build Windows CLI
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=Windows -p:DebugType=Embedded
- name: Build Linux CLI
Expand Down Expand Up @@ -143,9 +139,9 @@ jobs:
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm64.zip

- name: Download URL
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: upload_url
name: upload_url.txt

- name: Read URL
id: url
Expand Down Expand Up @@ -212,8 +208,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore Dependencies
run: dotnet restore TwitchDownloaderCLI
- name: Build MacOS CLI
run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOS -p:DebugType=Embedded
- name: Build MacOSArm64 CLI
Expand All @@ -232,9 +226,9 @@ jobs:
dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOSArm64.zip

- name: Download URL
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: upload_url
name: upload_url.txt

- name: Read URL
id: url
Expand Down

0 comments on commit e5dc67d

Please sign in to comment.