Skip to content

Commit 5f3fe50

Browse files
Miha Zidarzb-sr
Miha Zidar
authored andcommitted
Add push step for gh pages
1 parent e68f316 commit 5f3fe50

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/dotnet.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,22 @@ jobs:
2424
run: |
2525
cd src
2626
dotnet restore
27-
- name: docfx
27+
- name: generate docfx site
2828
run: |
2929
dotnet tool install -g docfx
3030
docfx init -y
3131
git checkout docfx.json
3232
cp README.md index.md
3333
docfx docfx.json
3434
ls -alh _site
35+
- name: push site to gh-pages
36+
run: |
37+
git config --global user.name 'Miha Zidar'
38+
git config --global user.email '[email protected]'
39+
git checkout -B gh-pages
40+
mv _site .git/
41+
rm -rf *
42+
mv .git/_site/* .
43+
git add .
44+
git commit -am "Automated github page generation"
45+
git push origin gh-pages -f

0 commit comments

Comments
 (0)