Skip to content

Commit

Permalink
Resolve Issues Building Docs
Browse files Browse the repository at this point in the history
The documentation site requires the code build, and I pulled them apart.

Reunite these two processes to hopefully resolve the site issues.
  • Loading branch information
AdrianJSClark committed Apr 20, 2024
1 parent 0002b83 commit 1db4d9b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 56 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/_build-docs.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/_build.yml
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
dotnet-version: '8.x'

# Build Solution and Run Tests
- name: 'Build Solution'
id: build-solution
shell: pwsh
Expand All @@ -49,6 +50,20 @@ jobs:
path: '**/*.trx'
reporter: 'dotnet-trx'

# Build and Upload Documentation
- run: dotnet tool update -g docfx
shell: pwsh

- run: docfx doc/docfx_project/docfx.json
shell: pwsh

- name: 'Upload Site Artifacts'
uses: actions/upload-artifact@v4
with:
name: 'Documentation Site'
path: 'doc/docfx_project/_site/'
if-no-files-found: error

- name: 'Copy Package to Root'
shell: pwsh
run: |
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/build-deploy-docs.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/create-release.yml
Expand Up @@ -11,15 +11,10 @@ jobs:
name: Build & Test
uses: ./.github/workflows/_build.yml

build-docs:
name: Build Documentation
uses: ./.github/workflows/_build-docs.yml

deploy:
name: Create Draft Release with NuGet Packages & Documentation Site
needs:
- build
- build-docs
runs-on: ubuntu-latest

env:
Expand Down
1 change: 0 additions & 1 deletion src/iRacing Data API.sln
Expand Up @@ -24,7 +24,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
..\.github\workflows\create-release.yml = ..\.github\workflows\create-release.yml
..\.github\workflows\pr.yml = ..\.github\workflows\pr.yml
..\.github\workflows\publish-release.yml = ..\.github\workflows\publish-release.yml
..\.github\workflows\_build-docs.yml = ..\.github\workflows\_build-docs.yml
..\.github\workflows\_build.yml = ..\.github\workflows\_build.yml
..\.github\workflows\_deploy-docs.yml = ..\.github\workflows\_deploy-docs.yml
EndProjectSection
Expand Down

0 comments on commit 1db4d9b

Please sign in to comment.