Skip to content

Commit cc97808

Browse files
committed
Fix CI workflow (#283)
1 parent 8b0b6b2 commit cc97808

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ on:
2424

2525
jobs:
2626
build:
27-
2827
name: "Build & package"
2928
runs-on: ubuntu-latest
30-
3129
env:
3230
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
3331
DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -38,6 +36,12 @@ jobs:
3836
fetch-depth: 0
3937
submodules: recursive
4038

39+
- uses: actions/setup-dotnet@v4
40+
with:
41+
dotnet-version: |
42+
6.0.x
43+
7.0.x
44+
4145
- name: Install tools
4246
run: |
4347
dotnet tool restore --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
@@ -71,22 +75,21 @@ jobs:
7175
MINVERBUILDMETADATA: ${{ env.GITHUB_RUN_NUMBER }}
7276

7377
- name: Publish package artifact
74-
uses: actions/upload-artifact@v2-preview
78+
uses: actions/upload-artifact@v4
7579
with:
7680
name: GovUk.Frontend.AspNetCore.nupkg
7781
path: src/GovUk.Frontend.AspNetCore/bin/Release/*.nupkg
7882

7983

8084
release:
81-
8285
name: "Release"
8386
runs-on: ubuntu-latest
8487
needs: build
8588
if: startsWith(github.ref, 'refs/tags/v')
8689

8790
steps:
8891
- name: Download package artifact
89-
uses: actions/download-artifact@v4.1.7
92+
uses: actions/download-artifact@v4
9093
with:
9194
name: GovUk.Frontend.AspNetCore.nupkg
9295

0 commit comments

Comments
 (0)