Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: homebrew installation #85

Merged
merged 11 commits into from
Feb 10, 2022
10 changes: 7 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down