Skip to content

Commit 920709e

Browse files
committed
updated
1 parent 81f5c3d commit 920709e

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,30 @@ jobs:
206206
steps:
207207
- name: 'Checkout ${{ github.head_ref || github.ref }}'
208208
uses: actions/checkout@v4
209+
- name: 'Overwrite assembly-metadata.json'
210+
shell: bash
211+
env:
212+
source-folder: '../src'
213+
project-files: '**/*.csproj'
214+
output-folder: ${{ env.friendly-version }}
215+
run: |
216+
echo "{
217+
\"$schema\": \"https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json\",
218+
\"metadata\": [
219+
{
220+
\"src\": [
221+
{
222+
\"src\": \"{{ env.source-folder }}\",
223+
\"files\": [
224+
\"{{ env.project-files }}\"
225+
]
226+
}
227+
],
228+
\"dest\": \"${{ env.output-folder }}\",
229+
\"outputFormat\": \"apiPage\"
230+
}
231+
]
232+
}" >! ./api-reference/assembly-metadata.json
209233
- name: 'Generate assembly metadata'
210234
uses: ./.github/actions/docfx-metadata
211235
with:

0 commit comments

Comments
 (0)