-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.72 KB
/
tookit-ndepend-github.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build Toolkit NDepend Analysis for GitHub Pages
env:
PROJECT_PATH_CORE: Stride.CommunityToolkit.sln
DEPLOY_DIR: ..\..\_temp\GitHubPages
on:
workflow_dispatch:
jobs:
publish-docs:
runs-on: windows-2022
steps:
- name: Dotnet Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Checkout Stride Community Toolkit
uses: actions/checkout@v4
with:
repository: stride3d/stride-community-toolkit
token: ${{ secrets.GITHUB_TOKEN }}
lfs: true
- name: Restore Stride dependencies
run: dotnet restore ${{ env.PROJECT_PATH_CORE }} --runtime win-x64
- name: Build Stride.CommunityToolkit.sln
run: dotnet build ${{ env.PROJECT_PATH_CORE }} --no-restore
- name: NDepend
uses: ndepend/ndepend-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
license: ${{ secrets.NDependLicense }}
customconfig: Stride.CommunityToolkit.ndproj
- name: Prepare deployment files for GitHub Pages
shell: powershell
run: |
New-Item -ItemType Directory -Force -Path ${{ env.DEPLOY_DIR }}
Copy-Item -Path ..\..\_temp\NDependOut\NDependReport.html -Destination ${{ env.DEPLOY_DIR }}\
Copy-Item -Path ..\..\_temp\NDependOut\NDependReportFiles -Destination ${{ env.DEPLOY_DIR }}\ -Recurse
- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.DEPLOY_DIR }}
destination_dir: toolkit/ndepend
publish_branch: gh-pages