diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5646894ff1..8a8d494d09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -515,10 +515,19 @@ jobs: **/photonlib*.zip if: github.event_name == 'push' # Upload all jars and xz archives - - uses: softprops/action-gh-release@v1 + # Split into two uploads to work around max size limits in action-gh-releases + # https://github.com/softprops/action-gh-release/issues/353 + - uses: softprops/action-gh-release@v2.0.8 with: files: | - **/*.xz + **/*orangepi5*.xz + if: startsWith(github.ref, 'refs/tags/v') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: softprops/action-gh-release@v2.0.8 + with: + files: | + **/!(*orangepi5*).xz **/*.jar **/photonlib*.json **/photonlib*.zip