Skip to content

Commit

Permalink
Update deprecated actions in GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Oct 17, 2023
1 parent d9621a8 commit e42a338
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugin-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tray-standalone-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit e42a338

Please sign in to comment.