Skip to content

Commit 5ec6db5

Browse files
author
Christoph Bühler
committed
chore: upload pages with ubuntu
1 parent a7c18d8 commit 5ec6db5

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/github-pages.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [master]
66

77
jobs:
8-
gh-pages:
8+
build-gh-pages:
99
runs-on: windows-latest
1010
steps:
1111
- uses: actions/checkout@v2
@@ -18,16 +18,31 @@ jobs:
1818
- name: Install DocFX & Rsync
1919
uses: crazy-max/ghaction-chocolatey@v1
2020
with:
21-
args: install docfx rsync -y
21+
args: install docfx -y
2222
- name: Restore Solution
2323
run: dotnet restore
2424
- name: Build Solution
2525
run: dotnet build
2626
- name: Build Documentation
2727
run: docfx docs/docfx.json
28-
- name: Deploy
28+
- name: Upload docs artifact
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: pages
32+
path: docs/public
33+
deploy-gh-pages:
34+
runs-on: ubuntu-latest
35+
needs: build-gh-pages
36+
steps:
37+
- name: Download docs artifact
38+
id: download
39+
uses: actions/download-artifact@v2
40+
with:
41+
name: pages
42+
path: public
43+
- name: Deploy gh pages
2944
uses: JamesIves/[email protected]
3045
with:
3146
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3247
BRANCH: gh-pages
33-
FOLDER: docs/public
48+
FOLDER: ${{ steps.download.outputs.download-path }}

0 commit comments

Comments
 (0)