Skip to content

Commit 3c86504

Browse files
committed
uncommented docs publish
1 parent 048d9d3 commit 3c86504

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -208,41 +208,41 @@ jobs:
208208
run: cat **/*-report-github.md > $GITHUB_STEP_SUMMARY
209209
working-directory: ${{ runner.temp }}/benchmarks/
210210

211-
# publish-docs:
212-
# if: ${{ github.env.is_release && !github.env.is_preview }}
213-
# name: Docs with docfx
214-
# needs: [benchmark, test]
215-
# environment:
216-
# name: github-pages
217-
# url: ${{ steps.deployment.outputs.page_url }}
218-
# runs-on: ubuntu-latest
219-
# steps:
220-
# - name: 'Checkout ${{ github.head_ref || github.ref }}'
221-
# uses: actions/checkout@v4
222-
# - name: Dotnet Setup
223-
# uses: actions/setup-dotnet@v4
224-
# with:
225-
# dotnet-version: ${{ env.dotnet-sdk-version }}
226-
# - name: Download Benchmarks
227-
# uses: actions/download-artifact@v4
228-
# with:
229-
# pattern: benchmark-*
230-
# path: ${{ runner.temp }}/benchmarks/
231-
# merge-multiple: false
232-
# - run: |
233-
# echo -e '\n## Windows' >> ${{ github.workspace}}/docfx/benchmarks/index.md
234-
# cat benchmark-windows-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
235-
# echo -e '\n## Linux' >> ${{ github.workspace}}/docfx/benchmarks/index.md
236-
# cat benchmark-ubuntu-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
237-
# echo -e '\n## macOS' >> ${{ github.workspace}}/docfx/benchmarks/index.md
238-
# cat benchmark-macos-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
239-
# working-directory: ${{ runner.temp }}/benchmarks/
240-
# - run: dotnet tool update -g docfx
241-
# - run: docfx ./docfx/docfx.json
242-
# - name: Upload artifact
243-
# uses: actions/upload-pages-artifact@v4
244-
# with:
245-
# path: './docs'
246-
# - name: Deploy to GitHub Pages
247-
# id: deployment
248-
# uses: actions/deploy-pages@v4
211+
publish-docs:
212+
# if: ${{ github.env.is_release && !github.env.is_preview }}
213+
name: Docs with docfx
214+
needs: [benchmark, test]
215+
environment:
216+
name: github-pages
217+
url: ${{ steps.deployment.outputs.page_url }}
218+
runs-on: ubuntu-latest
219+
steps:
220+
- name: 'Checkout ${{ github.head_ref || github.ref }}'
221+
uses: actions/checkout@v4
222+
- name: Dotnet Setup
223+
uses: actions/setup-dotnet@v4
224+
with:
225+
dotnet-version: ${{ env.dotnet-sdk-version }}
226+
- name: Download Benchmarks
227+
uses: actions/download-artifact@v4
228+
with:
229+
pattern: benchmark-*
230+
path: ${{ runner.temp }}/benchmarks/
231+
merge-multiple: false
232+
- run: |
233+
echo -e '\n## Windows' >> ${{ github.workspace}}/docfx/benchmarks/index.md
234+
cat benchmark-windows-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
235+
echo -e '\n## Linux' >> ${{ github.workspace}}/docfx/benchmarks/index.md
236+
cat benchmark-ubuntu-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
237+
echo -e '\n## macOS' >> ${{ github.workspace}}/docfx/benchmarks/index.md
238+
cat benchmark-macos-latest/**/*.md >> ${{ github.workspace}}/docfx/benchmarks/index.md
239+
working-directory: ${{ runner.temp }}/benchmarks/
240+
- run: dotnet tool update -g docfx
241+
- run: docfx ./docfx/docfx.json
242+
- name: Upload artifact
243+
uses: actions/upload-pages-artifact@v4
244+
with:
245+
path: './docs'
246+
- name: Deploy to GitHub Pages
247+
id: deployment
248+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)