From e42a3389532b1685669496522c6e7caff494140d Mon Sep 17 00:00:00 2001 From: Harshith Mohan Date: Tue, 17 Oct 2023 12:00:49 +0530 Subject: [PATCH] Update deprecated actions in GH workflows --- .github/workflows/build-daily.yml | 8 ++++---- .github/workflows/build-release.yml | 8 ++++---- .github/workflows/plugin-nuget.yml | 2 +- .github/workflows/tray-standalone-manual.yml | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-daily.yml b/.github/workflows/build-daily.yml index 33dc5cffe..9fc164e93 100644 --- a/.github/workflows/build-daily.yml +++ b/.github/workflows/build-daily.yml @@ -86,14 +86,14 @@ jobs: if: ${{ matrix.rid == 'linux-arm64' }} - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} - run: dotnet publish -c Release -r ${{ matrix.rid }} ${{ matrix.build_props }} Shoko.CLI "/p:Version=\"${{ needs.current_info.outputs.version }}\",InformationalVersion=\"channel=dev,commit=${{ needs.current_info.outputs.sha }},date=${{ needs.current_info.outputs.date }}\"" - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Shoko.CLI_${{ matrix.build_type }}_${{ matrix.rid }}.zip path: Shoko.Server/bin/Release/net6.0/${{matrix.rid}}/publish/ @@ -134,14 +134,14 @@ jobs: .\\.github\\workflows\\ReplaceAVD3URL.ps1 -url ${{ secrets.AVD3_URL }} - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} - run: dotnet publish -c Release ${{ matrix.build_props }} Shoko.TrayService "/p:Version=\`"${{ needs.current_info.outputs.version }}\`",InformationalVersion=\`"channel=dev,commit=${{ needs.current_info.outputs.sha }},date=${{ needs.current_info.outputs.date }}\`"" - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Shoko.TrayService_${{ matrix.build_type }}_win10-x64.zip path: Shoko.Server/bin/Release${{ matrix.build_dir }}/publish/ diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 3f9c0d16a..1e22fbde0 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -39,7 +39,7 @@ jobs: prefixRegex: "[vV]?" - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} @@ -96,7 +96,7 @@ jobs: if: ${{ matrix.rid == 'linux-arm64' }} - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} @@ -156,7 +156,7 @@ jobs: prefixRegex: "[vV]?" - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} @@ -206,7 +206,7 @@ jobs: prefixRegex: "[vV]?" - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} diff --git a/.github/workflows/plugin-nuget.yml b/.github/workflows/plugin-nuget.yml index 047c0d536..cab3b830d 100644 --- a/.github/workflows/plugin-nuget.yml +++ b/.github/workflows/plugin-nuget.yml @@ -20,7 +20,7 @@ jobs: submodules: recursive - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} diff --git a/.github/workflows/tray-standalone-manual.yml b/.github/workflows/tray-standalone-manual.yml index dfcdf764c..2098c3c7f 100644 --- a/.github/workflows/tray-standalone-manual.yml +++ b/.github/workflows/tray-standalone-manual.yml @@ -49,13 +49,13 @@ jobs: prefixRegex: "[vV]?" - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ matrix.dotnet }} - run: dotnet publish -c Release -r win10-x64 --self-contained true -f net6.0-windows Shoko.TrayService "/p:Version=\`"${{ steps.release_info.outputs.version }}\`",InformationalVersion=\`"channel=${{ github.event.inputs.release }},commit=${{ github.sha }},date=${{ steps.release_info.outputs.date }}\`"" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: Shoko.TrayService path: Shoko.Server/bin/Release/net6.0-windows/win10-x64/publish/