diff --git a/.github/workflows/stride-ndepend-github.yml b/.github/workflows/stride-ndepend-github.yml index 1e60586..a758900 100644 --- a/.github/workflows/stride-ndepend-github.yml +++ b/.github/workflows/stride-ndepend-github.yml @@ -42,33 +42,45 @@ jobs: run: | Add-Content -Path Directory.Build.props -Value "" Add-Content -Path Directory.Build.props -Value " " - Add-Content -Path Directory.Build.props -Value " $(SolutionDir)\.sarif\$(MSBuildProjectName).json" + Add-Content -Path Directory.Build.props -Value " $$(SolutionDir)\.sarif\$$(MSBuildProjectName).json" Add-Content -Path Directory.Build.props -Value " " Add-Content -Path Directory.Build.props -Value "" - - name: Build Stride.sln - run: msbuild build/Stride.build -t:Build - # run: dotnet build ${{ env.PROJECT_PATH_CORE }} --no-restore + - name: List folder content in the working directory + shell: powershell + run: Get-ChildItem - - name: NDepend - uses: ndepend/ndepend-action@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - license: ${{ secrets.NDependLicense }} - solution: ${{ env.PROJECT_PATH_CORE }} - baseline: recent + - name: List folder content in the build directory + shell: powershell + run: Get-ChildItem -Path build - - name: Prepare deployment files for GitHub Pages + - name: Display Directory.Build.props content 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 + run: Get-Content -Path Directory.Build.props - - 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