Skip to content

Commit 7d5a581

Browse files
committed
Update jekyll-gh-pages.yml
1 parent d466c4c commit 7d5a581

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,38 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
# Build job
26-
build:
27-
runs-on: ubuntu-latest
25+
generate-docs:
26+
27+
runs-on: windows-latest
28+
2829
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v4
31-
- name: Setup Pages
32-
uses: actions/configure-pages@v5
33-
- name: Build with Jekyll
34-
uses: actions/jekyll-build-pages@v1
35-
with:
36-
source: ./
37-
destination: ./_site
38-
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@v3
30+
- uses: actions/checkout@v4
31+
32+
- name: Setup .NET 8
33+
uses: actions/setup-dotnet@v4
34+
with:
35+
dotnet-version: 8.0.x
36+
37+
- name: Update DocFX
38+
run: dotnet tool update -g docfx
39+
40+
- name: DocFX Build
41+
working-directory: docs
42+
run: docfx .\docfx.json
43+
continue-on-error: false
44+
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: 'docs/_site'
4049

4150
# Deployment job
4251
deploy:
4352
environment:
4453
name: github-pages
4554
url: ${{ steps.deployment.outputs.page_url }}
4655
runs-on: ubuntu-latest
47-
needs: build
56+
needs: generate-docs
4857
steps:
4958
- name: Deploy to GitHub Pages
5059
id: deployment

0 commit comments

Comments
 (0)