diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3b0fb0b7..726ba54c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,11 +28,15 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist + - name: Install HomeBrew + run: | + test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" + test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + test -r ~/.bash_profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >>~/.bash_profile + echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >>~/.profile - name: Configure and build api docs generator run: | - curl -LJO https://github.com/dotnet/docfx/releases/download/v2.56.7/docfx.zip - unzip docfx.zip -d docfx && rm docfx.zip - cd docfx/ + brew install docfx docfx apidocs/docfx.json - name: Release API docs to latest uses: peaceiris/actions-gh-pages@v3