Update action.yml

master
Vitalii Mikhailov 2 years ago committed by GitHub
parent 28f165d531
commit 29006c0177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,21 +50,25 @@ runs:
run: dotnet build ${{ github.action_path }}/build/DocFx.Plugin.LastModified --configuration Release --output ${{inputs.docs-directory}}/_template/last-modified/plugins;
shell: pwsh
- uses: actions/checkout@v3
with:
repository: BUTR/docfx
path: _actions_docfx
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
working-directory: _actions_docfx/templates
shell: pwsh
- run: npm run build
working-directory: _actions_docfx/templates
shell: pwsh
- run: dotnet pack _actions_docfx/src/docfx -c Release -o _actions_docfx/drop/nuget
shell: pwsh
- run: dotnet tool update --global docfx
working-directory: _actions_docfx
# When a custom fork is needed
# - uses: actions/checkout@v3
# with:
# repository: BUTR/docfx
# path: _actions_docfx
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# - run: npm install
# working-directory: _actions_docfx/templates
# shell: pwsh
# - run: npm run build
# working-directory: _actions_docfx/templates
# shell: pwsh
# - run: dotnet pack _actions_docfx/src/docfx -c Release -o _actions_docfx/drop/nuget
# shell: pwsh
# - run: dotnet tool update --global docfx
# working-directory: _actions_docfx
# shell: pwsh
- name: Install DocFX
run: dotnet tool update -g docfx
shell: pwsh

Loading…
Cancel
Save