Skip to content

Commit fef4184

Browse files
committed
Add a step to build & package docs
This packages them as an artifact, so that they may be reused
1 parent 25a93bc commit fef4184

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/dotnetCi.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,22 @@ jobs:
166166
167167
# Build the apps in release mode and publish artifacts
168168

169+
- name: Clean the solution ahead of building in release config
170+
run: dotnet clean
169171
- name: Build, in release configuration
170172
run: dotnet pack -p:VersionSuffix=$VersionSuffix -o packages
171173
- name: Upload build result artifacts
172174
uses: actions/upload-artifact@v4
173175
with:
174176
name: Build results (NuGet)
175177
path: packages/*.nupkg
176-
177-
# buildDocs:
178-
# TODO: Build the docco site and package the result as an artifact, don't publish it
178+
- name: Build docs website
179+
run: dotnet build -c Docs
180+
- name: Upload docs website artifact
181+
uses: actions/upload-artifact@v4
182+
with:
183+
name: Docs website
184+
path: docs/**/*
179185

180186
# publishDocs:
181187
# TODO: Take the docco site artifact and publish it to master

0 commit comments

Comments
 (0)