diff --git a/.github/workflows/windows-macOS-Linux.yml b/.github/workflows/windows-macOS-Linux.yml index 019b1d28b0..a2f60238af 100644 --- a/.github/workflows/windows-macOS-Linux.yml +++ b/.github/workflows/windows-macOS-Linux.yml @@ -89,17 +89,47 @@ jobs: with: name: DolphinMPN-win32 path: D:\a\Dolphin-MPN\Dolphin-MPN\Binary\x64 - # Upload Artifact + # Upload Artifact - name: Upload Build Artifact if: matrix.os == 'macos-latest' uses: actions/upload-artifact@v2 with: name: DolphinMPN-macOS path: /Users/runner/work/Dolphin-MPN/Dolphin-MPN/build/Binaries/ - # Upload Artifact + # Upload Artifact - name: Upload Build Artifact if: matrix.os == 'linux-latest' uses: actions/upload-artifact@v2 with: name: DolphinMPN-Linux path: /home/runner/work/Dolphin-MPN/Dolphin-MPN/build/Binaries/ + # Zip Artifact + - name: Zip Artifact + if: matrix.os == 'ubuntu-latest' + run: 7z a -tzip /home/runner/DolphinMPN-linux /home/runner/work/Dolphin-MPN-src/Dolphin-MPN-src/build/Binaries/* + # New Release + - name: New Release + if: ${{ startsWith(github.ref, 'refs/tags/') }} && matrix.os == 'ubuntu-latest' + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: /home/runner/DolphinMPN-linux.7z + # Zip Artifact + - name: Zip Artifact + if: matrix.os == 'macos-latest' + run: 7z a -tzip /Users/runner/DolphinMPN-macOS-intel /Users/runner/work/Dolphin-MPN-src/Dolphin-MPN-src/build/Binaries/* + # New Release + - name: New Release + if: ${{ startsWith(github.ref, 'refs/tags/') }} && matrix.os == 'macos-latest' + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: /Users/runner/DolphinMPN-macOS-intel.7z + # Zip Artifact + - name: Zip Artifact + if: ${{ startsWith(github.ref, 'refs/tags/') }} && matrix.os == 'windows-latest' + run: 7z a -tzip D:/DolphinMPN-win32 D:/a/dolphin-mpn-src/dolphin-mpn-src/Binary/x64/* + # New Release + - name: New Release + if: ${{ startsWith(github.ref, 'refs/tags/') }} && matrix.os == 'windows-latest' + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: D:/DolphinMPN-win32.7z