Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ on:

jobs:
build:

name: "Build & package"
runs-on: ubuntu-latest

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
Expand All @@ -37,6 +35,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x

- name: Install tools
run: |
dotnet tool restore --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
Expand Down Expand Up @@ -70,22 +74,21 @@ jobs:
MINVERBUILDMETADATA: ${{ env.GITHUB_RUN_NUMBER }}

- name: Publish package artifact
uses: actions/upload-artifact@v2-preview
uses: actions/upload-artifact@v4
with:
name: GovUk.Frontend.AspNetCore.nupkg
path: src/GovUk.Frontend.AspNetCore/bin/Release/*.nupkg


release:

name: "Release"
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download package artifact
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: GovUk.Frontend.AspNetCore.nupkg

Expand Down
Loading