Skip to content

Commit

Permalink
Potential build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmind committed Nov 18, 2024
1 parent d008b93 commit 9ea1c94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,18 @@ jobs:
env:
NUGET_PACKAGES: ${{github.workspace}}/.nuget/packages
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 2.1.x
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
dotnet-version: |
2.1.x
3.1.x
7.0.x
# https://github.com/actions/setup-dotnet/issues/155#issuecomment-748452076
- run: dotnet nuget locals all --clear

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{github.workspace}}/.nuget/packages
key: ${{runner.os}}-nuget-${{hashFiles('**/packages.lock.json')}}
Expand All @@ -48,6 +45,6 @@ jobs:
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate

- if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2-preview
uses: actions/upload-artifact@v4
with:
path: '*.nupkg'
12 changes: 6 additions & 6 deletions .github/workflows/web-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: 'true'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16.17.1'
cache: 'npm'
Expand All @@ -45,8 +45,8 @@ jobs:
run: npm run test-storybook
working-directory: WebAssets

- name: "[Failure] Run actions/upload-artifact@v2 (diff output)"
uses: actions/upload-artifact@v2
- name: "[Failure] Run actions/upload-artifact@v4 (diff output)"
uses: actions/upload-artifact@v4
if: failure()
with:
name: __diff_output__
Expand All @@ -58,8 +58,8 @@ jobs:
working-directory: WebAssets
if: failure()

- name: "[Failure] Run actions/upload-artifact@v2 (updated snapshots)"
uses: actions/upload-artifact@v2
- name: "[Failure] Run actions/upload-artifact@v4 (updated snapshots)"
uses: actions/upload-artifact@v4
if: failure()
with:
name: '__image_snapshots__ (updated)'
Expand Down

0 comments on commit 9ea1c94

Please sign in to comment.