Skip to content

Commit

Permalink
fix: set correct github pages uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
QuakeEye committed Apr 24, 2024
1 parent 1be3ba8 commit 542e320
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build Doxygen
name: Build Docfx Documentation

on:
pull_request:
types: [opened, synchronize, reopened, closed]
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -20,8 +20,8 @@ concurrency:
cancel-in-progress: false

jobs:
build-doxygen:
name: Build Doxygen
build-docfx:
name: Build Docfx
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand All @@ -35,12 +35,20 @@ jobs:
dotnet-version: 8.x
- run: dotnet tool update -g docfx
- run: docfx docfx.json
- name: Upload artifact
uses: actions/upload-artifact@v4
# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# path: _site
# - name: Deploy to GitHub Pages
# uses: actions/deploy-pages@v4

- name: Upload Docfx Documentation to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
path: _site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: _site

# - name: Install Doxygen
# run: |
# sudo apt-get install -y graphviz
Expand Down

0 comments on commit 542e320

Please sign in to comment.