From b240de9d4a0764e088e7b8d11a7fea39c41525e6 Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Fri, 21 Jan 2022 18:44:25 -0600 Subject: [PATCH] publish develop artifacts to stable release url --- .github/workflows/ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fec4e4ec..948abca72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,6 @@ 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 @@ -95,18 +94,15 @@ jobs: # Delete output directory rm -r "$release_name" - - name: Upload Windows - uses: actions/upload-artifact@v2 - if: ${{ matrix.target == 'win-x64' }} + - name: Publish + uses: pyTooling/Actions/releaser@r0 with: - 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 + token: ${{ secrets.GITHUB_TOKEN }} + tag: develop + rm: true + files: | + ErsatzTV*.zip + ErsatzTV*.tar.gz build_and_push: name: Build & Publish to Docker Hub needs: build_and_test