Skip to content

Commit 5b8e8c6

Browse files
committed
workflow: other deploy step for gh-pages
1 parent 74098f7 commit 5b8e8c6

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/CI-CD-Docs.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ jobs:
4242
dotnet build src/bunit.web/ --no-restore -p:version=$VERSION
4343
dotnet build src/bunit.xunit/ --no-restore -p:version=$VERSION
4444
dotnet build docs/
45-
- name: Deploy
46-
uses: JamesIves/github-pages-deploy-action@releases/v3
45+
name: Deploy to GitHub Pages
46+
if: success()
47+
uses: crazy-max/ghaction-github-pages@v2
4748
with:
48-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
BRANCH: gh-pages # The branch the action should deploy to.
50-
FOLDER: docs/_site # The folder the action should deploy.
51-
CLEAN: true
49+
target_branch: gh-pages
50+
build_dir: docs/_site
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
# - name: Deploy
54+
# uses: JamesIves/github-pages-deploy-action@releases/v3
55+
# with:
56+
# ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
# BRANCH: gh-pages # The branch the action should deploy to.
58+
# FOLDER: docs/_site # The folder the action should deploy.
59+
# CLEAN: true

0 commit comments

Comments
 (0)