Skip to content

Commit fde3c60

Browse files
authored
docs: merging api generation tasks (#84)
* adding api docs project structure * fix path for source projects * updated github actions to publish api docs * adding docfx configuration to github actions * fix docfx installation script * fix docfx location * persisting docfx in PATH * merging api generation tasks * fixing docfx executable location
1 parent caaefe2 commit fde3c60

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/docs.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ jobs:
2828
with:
2929
github_token: ${{ secrets.GITHUB_TOKEN }}
3030
publish_dir: ./dist
31-
- name: Configure api docs generator
31+
- name: Configure and build api docs generator
3232
run: |
3333
curl -LJO https://github.com/dotnet/docfx/releases/download/v2.56.7/docfx.zip
34-
unzip docfx.zip -d /home/runner/work/aws-lambda-powertools-dotnet/aws-lambda-powertools-dotnet/docfx && rm docfx.zip
35-
echo "/home/runner/work/aws-lambda-powertools-dotnet/aws-lambda-powertools-dotnet/docfx" >> $GITHUB_PATH
36-
- name: Build api docs
37-
run: |
38-
cd apidocs
39-
docfx docfx.json
34+
unzip docfx.zip -d docfx && rm docfx.zip
35+
cd docfx/
36+
docfx apidocs/docfx.json
4037
- name: Release API docs to latest
4138
uses: peaceiris/actions-gh-pages@v3
4239
with:

0 commit comments

Comments
 (0)