Skip to content

Commit

Permalink
try and fix docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SFGrenade committed Jan 22, 2025
1 parent 8249358 commit 26b2bd9
Showing 1 changed file with 33 additions and 18 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,46 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Checkout master
uses: actions/checkout@v4
with:
ref: master
path: master

- name: Checkout docs
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: docs
path: docs
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Setup ms-build, mono
run: sudo apt-get install -y nuget mono-devel mono-xbuild
- name: Download DocFX
working-directory: docs
run: |
wget https://github.com/dotnet/docfx/releases/download/v2.61.0/docfx-linux-x64-v2.61.0.zip -O docfx.zip
unzip docfx.zip -d docfx
path: master/docs

- name: Setup MAPI
uses: BadMagic100/setup-hk@v2
with:
apiPath: HkRefs
dependencyFilePath: master/ModDependencies.txt

- name: Build docs
working-directory: docs
run: |
docfx/docfx
uses: nunit/[email protected]
with:
args: master/docs/docfx.json

#- name: Setup .NET
# uses: actions/setup-dotnet@v3
#- name: Setup ms-build, mono
# run: sudo apt-get install -y nuget mono-devel mono-xbuild
#- name: Download DocFX
# working-directory: docs
# run: |
# wget https://github.com/dotnet/docfx/releases/download/v2.61.0/docfx-linux-x64-v2.61.0.zip -O docfx.zip
# unzip docfx.zip -d docfx
#- name: Build docs
# working-directory: docs
# run: |
# docfx/docfx

- name: Publish
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_dir: master/docs/_site
force_orphan: true

0 comments on commit 26b2bd9

Please sign in to comment.