Update test packages and configure dependabot for UITest projects (#769) #283
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Clone Repo | |
| uses: actions/checkout@v1 | |
| - name: Setup Visual Studio Command Prompt | |
| uses: microsoft/setup-msbuild@v1.0.2 | |
| - name: Install MAUI Workload | |
| run: | | |
| dotnet workload install maui@9.0.100 | |
| dotnet workload restore src/Toolkit/Toolkit.Maui/Esri.ArcGISRuntime.Toolkit.Maui.csproj --from-previous-sdk | |
| - name: Restore | |
| run: | | |
| msbuild /restore /t:Restore src/Toolkit/Toolkit.WPF/Esri.ArcGISRuntime.Toolkit.WPF.csproj /p:Configuration=Release | |
| msbuild /restore /t:Restore src/Toolkit/Toolkit.WinUI/Esri.ArcGISRuntime.Toolkit.WinUI.csproj /p:Configuration=Release | |
| msbuild /restore /t:Restore src/Toolkit/Toolkit.Maui/Esri.ArcGISRuntime.Toolkit.Maui.csproj /p:Configuration=Release | |
| - name: Download DocFX | |
| run: | | |
| mkdir .tools/docfx | |
| Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/releases/download/v${env:DOCFXVERSION}/docfx-win-x64-v${env:DOCFXVERSION}.zip" -OutFile ".tools/docfx/docfx.zip" | |
| [System.IO.Compression.ZipFile]::ExtractToDirectory(".tools/docfx/docfx.zip", ".tools/docfx" ) | |
| env: | |
| DOCFXVERSION: 2.77.0 | |
| - name: Download .NET xrefmap | |
| run: | | |
| mkdir output | |
| Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/raw/main/.xrefmap.json" -OutFile "output/dotnet.xrefmap.json" | |
| - name: Build Documentation | |
| env: | |
| DOCFX_SOURCE_BRANCH_NAME: main | |
| run: | | |
| .tools/docfx/docfx.exe docs/docfx.json | |
| powershell -ExecutionPolicy ByPass -command "docs\FixApiRefLinks" -Path output\docs_site\api\ | |
| - name: Publish Documentation | |
| env: | |
| ACCESS_TOKEN: ${{ secrets.GH_PAT }} | |
| BRANCH: gh-pages | |
| shell: cmd | |
| run: | | |
| cd output\docs_site | |
| git init | |
| git config --local user.name "%GITHUB_ACTOR%" | |
| git config --local user.email "%GITHUB_ACTOR%@users.noreply.github.com" | |
| git config --local core.autocrlf false | |
| git add . | |
| git commit -m "Auto-update doc from commit %GITHUB_SHA%" | |
| git push --force https://%ACCESS_TOKEN%@github.com/%GITHUB_REPOSITORY%.git master:%BRANCH% | |
| rmdir .git /S /Q | |