Skip to content

Commit 853c44b

Browse files
committed
build: Update GitHub Actions workflow with latest versions and best practices
1 parent ecc73f9 commit 853c44b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/setup-dotnet@v4
1616

1717
- name: Setup .NET Core
1818
uses: actions/setup-dotnet@v1
1919
with:
20-
dotnet-version: 6.0.x
20+
dotnet-version: 7.0.x
2121

2222
- name: Setup DocFX
2323
run: |
24-
dotnet tool update -g docfx
24+
dotnet tool update -g docfx --version 2.60.2
2525
2626
- name: Build with DocFX
27-
run: docfx docfx.json
27+
run: docfx ./docfx.json
2828

2929
- name: Deploy to GitHub Pages
3030
if: github.event_name == 'push'

0 commit comments

Comments
 (0)