From f5001837cb40ff4e41b545d42ceb8776ed276c99 Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Fri, 21 Jan 2022 18:20:51 -0600 Subject: [PATCH] properly separate build artifacts --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f63aa177c..2fec4e4ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,7 @@ jobs: short=$(git rev-parse --short HEAD) final="${tag2/alpha/$short}" release_name="ErsatzTV-$final-${{ matrix.target }}" + echo "RELEASE_NAME=${release_name}" >> $GITHUB_ENV # Build everything dotnet publish ErsatzTV/ErsatzTV.csproj --framework net6.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" /property:InformationalVersion="$final-${{ matrix.target }}" /property:EnableCompressionInSingleFile=true /property:DebugType=Embedded /property:PublishSingleFile=true --self-contained true @@ -94,12 +95,18 @@ jobs: # Delete output directory rm -r "$release_name" - - name: Upload + - name: Upload Windows uses: actions/upload-artifact@v2 + if: ${{ matrix.target == 'win-x64' }} with: - path: | - ErsatzTV*.zip - ErsatzTV*.tar.gz + name: ${{ env.RELEASE_NAME }}.zip + path: ErsatzTV*.zip + - name: Upload Everything Else + uses: actions/upload-artifact@v2 + if: ${{ matrix.target != 'win-x64' }} + with: + name: ${{ env.RELEASE_NAME }}.tar.gz + path: ErsatzTV*.tar.gz build_and_push: name: Build & Publish to Docker Hub needs: build_and_test