Skip to content

Commit

Permalink
feat: Enabling the whole action
Browse files Browse the repository at this point in the history
  • Loading branch information
VaclavElias committed Oct 5, 2024
1 parent 59269a1 commit 5a2358f
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/stride-ndepend-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ jobs:
shell: powershell
run: Get-Content -Path Directory.Build.props

# - name: Build Stride.sln
# run: msbuild build/Stride.build -t:Build
# # 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 }}
# solution: ${{ env.PROJECT_PATH_CORE }}
# baseline: recent

# - 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/actions-gh-pages@v4.0.0
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ${{ env.DEPLOY_DIR }}
# destination_dir: stride/ndepend
# publish_branch: gh-pages
- name: Build Stride.sln
run: msbuild build/Stride.build -t:Build
# 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 }}
solution: ${{ env.PROJECT_PATH_CORE }}
baseline: recent

- 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/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.DEPLOY_DIR }}
destination_dir: stride/ndepend
publish_branch: gh-pages

0 comments on commit 5a2358f

Please sign in to comment.