Skip to content

Commit

Permalink
chore: fix worflow exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamed Shirbandi committed Nov 10, 2024
1 parent bc3ffe6 commit d1fb557
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-docfx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name: Deploy Documentation
on:
push:
branches:
- gh-pages
- gh-pages # Trigger the workflow when there is a push to the gh-pages branch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v2
with:
dotnet-version: "8.0.x"
dotnet-version: "6.0" # Adjust the version if necessary

- name: Install DocFX tool
run: |
dotnet tool install -g docfx
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
- name: Build documentation with DocFX
run: docfx build
run: docfx build # Build the documentation

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
publish_dir: ./_site # Only deploy the contents of _site folder (DocFX output)
publish_branch: gh-pages # Deploy to the gh-pages branch

0 comments on commit d1fb557

Please sign in to comment.