From d0f5eeaa0db4d4c378551886e4fcd241433ecdd7 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Fri, 16 Dec 2022 20:38:42 +0800 Subject: [PATCH 1/3] chore!: drop azure pipeline, build scripts and nuspec files --- NuGet.config | 11 - azure-pipelines-master.yml | 244 ------------------ azure-pipelines-stable.yml | 198 -------------- azure-pipelines-v2-lgtm.yml | 88 ------- build.cmd | 4 - build.ps1 | 175 ------------- build.sh | 5 - common.ps1 | 56 ---- docfx.sln | 5 - pack.ps1 | 113 -------- src/nuspec/chocolatey/docfx/docfx.nuspec | 77 ------ src/nuspec/chocolatey/docfx/docfx.svg | 10 - .../chocolatey/docfx/tools/VERIFICATION | 7 - .../docfx/tools/chocolateyinstall.ps1 | 17 -- .../docfx.console/build/docfx.console.targets | 61 ----- src/nuspec/docfx.console/content/.gitignore | 10 - .../docfx.console/content/api/.gitignore | 5 - src/nuspec/docfx.console/content/api/index.md | 3 - .../docfx.console/content/articles/intro.md | 2 - .../docfx.console/content/articles/toc.md | 1 - src/nuspec/docfx.console/content/docfx.json | 68 ----- src/nuspec/docfx.console/content/index.md | 5 - src/nuspec/docfx.console/content/toc.yml | 6 - src/nuspec/docfx.console/docfx.console.nuspec | 23 -- src/nuspec/docfx.console/tools/install.ps1 | 116 --------- tools/Deployment/config.ps1 | 33 --- tools/Deployment/deploy-tasks.ps1 | 222 ---------------- tools/Deployment/deploy.ps1 | 83 ------ 28 files changed, 1648 deletions(-) delete mode 100644 NuGet.config delete mode 100644 azure-pipelines-master.yml delete mode 100644 azure-pipelines-stable.yml delete mode 100644 azure-pipelines-v2-lgtm.yml delete mode 100644 build.cmd delete mode 100644 build.ps1 delete mode 100755 build.sh delete mode 100644 common.ps1 delete mode 100644 pack.ps1 delete mode 100755 src/nuspec/chocolatey/docfx/docfx.nuspec delete mode 100755 src/nuspec/chocolatey/docfx/docfx.svg delete mode 100644 src/nuspec/chocolatey/docfx/tools/VERIFICATION delete mode 100755 src/nuspec/chocolatey/docfx/tools/chocolateyinstall.ps1 delete mode 100644 src/nuspec/docfx.console/build/docfx.console.targets delete mode 100644 src/nuspec/docfx.console/content/.gitignore delete mode 100644 src/nuspec/docfx.console/content/api/.gitignore delete mode 100644 src/nuspec/docfx.console/content/api/index.md delete mode 100644 src/nuspec/docfx.console/content/articles/intro.md delete mode 100644 src/nuspec/docfx.console/content/articles/toc.md delete mode 100644 src/nuspec/docfx.console/content/docfx.json delete mode 100644 src/nuspec/docfx.console/content/index.md delete mode 100644 src/nuspec/docfx.console/content/toc.yml delete mode 100644 src/nuspec/docfx.console/docfx.console.nuspec delete mode 100644 src/nuspec/docfx.console/tools/install.ps1 delete mode 100644 tools/Deployment/config.ps1 delete mode 100644 tools/Deployment/deploy-tasks.ps1 delete mode 100644 tools/Deployment/deploy.ps1 diff --git a/NuGet.config b/NuGet.config deleted file mode 100644 index 5dfaf337726..00000000000 --- a/NuGet.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/azure-pipelines-master.yml b/azure-pipelines-master.yml deleted file mode 100644 index f48ec2529f6..00000000000 --- a/azure-pipelines-master.yml +++ /dev/null @@ -1,244 +0,0 @@ -# This YAML is used for the docfx v2 main release CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=1503&_a=summary) - -variables: -- group: docfx-v2-pipeline-kv -- name: NUGETEXE - value: nuget - -pool: - name: 1ES-Pool - demands: ImageOverride -equals MMS2019 - -steps: - -- task: UseDotNet@2 - displayName: 'Install .NET Core sdk required for ESRPCodeSigning' - inputs: - packageType: sdk - version: '2.1.811' - -- task: UseDotNet@2 - displayName: 'Install .NET Core sdk required for docfx' - inputs: - packageType: sdk - version: '6.x' - -- task: NodeTool@0 - displayName: "Use Node 16.x" - inputs: - versionSpec: 16.x - -- powershell: | - npm install -g npm-windows-upgrade - npm-windows-upgrade -v 8.13.2 - npm -v - displayName: Upgrade npm to latest version - -- task: NuGetToolInstaller@1 - displayName: 'Use NuGet' - inputs: - versionSpec: 5.9.1 - -- task: PowerShell@2 - displayName: 'main build' - inputs: - pwsh: true - failOnStderr: true - filePath: 'tools\Deployment\deploy.ps1' - arguments: '-main' - env: - TOKEN: $(ServiceAccountGithubToken) - -- task: UseDotNet@2 - displayName: 'Install .NET Core sdk required for ESRPCodeSigning' - inputs: - packageType: sdk - version: '2.1.811' - -- task: EsrpCodeSigning@1 - displayName: Sign docfx executables and dlls - inputs: - ConnectedServiceName: 'CodeSigning-APEX' - FolderPath: '$(Build.SourcesDirectory)/target/Release' - Pattern: | - **\Microsoft.DocAsCode.*.dll - **\*.exe - UseMinimatch: true - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "KeyCode": "CP-230012", - "OperationSetCode": "SigntoolSign", - "parameters": [ - { - "parameterName": "OpusName", - "parameterValue": "Microsoft" - }, - { - "parameterName": "OpusInfo", - "parameterValue": "http://www.microsoft.com" - }, - { - "parameterName": "PageHash", - "parameterValue": "/NPH" - }, - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd \"SHA256\"" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - }, - { - "KeyCode": "CP-230012", - "OperationSetCode": "SigntoolVerify", - "Parameters": [ - { - "parameterName": "VerifyAll", - "parameterValue": "/all" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - } - ] - SessionTimeout: '60' - MaxConcurrency: '50' - MaxRetryAttempts: '5' - -- task: EsrpCodeSigning@1 - displayName: Sign dependent dlls - inputs: - ConnectedServiceName: 'CodeSigning-APEX' - FolderPath: '$(Build.SourcesDirectory)/target/Release' - Pattern: | - **\*.dll - !**\System.*.dll - !**\Microsoft.!(DocAsCode).*.dll - !**\NuGet.*.dll - !**\FSharp.Core.*.dll - UseMinimatch: true - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "KeyCode": "CP-231522", - "OperationSetCode": "SigntoolSign", - "parameters": [ - { - "parameterName": "OpusName", - "parameterValue": "Microsoft" - }, - { - "parameterName": "OpusInfo", - "parameterValue": "http://www.microsoft.com" - }, - { - "parameterName": "Append", - "parameterValue": "/as" - }, - { - "parameterName": "PageHash", - "parameterValue": "/NPH" - }, - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd \"SHA256\"" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - }, - { - "KeyCode": "CP-231522", - "OperationSetCode": "SigntoolVerify", - "Parameters": [ - { - "parameterName": "VerifyAll", - "parameterValue": "/all" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - } - ] - SessionTimeout: '60' - MaxConcurrency: '50' - MaxRetryAttempts: '5' - -- task: PowerShell@2 - displayName: 'main pack' - inputs: - pwsh: true - failOnStderr: true - filePath: 'tools\Deployment\deploy.ps1' - arguments: '-main -targets pack' - -- task: EsrpCodeSigning@1 - displayName: 'Sign NuGet packages' - inputs: - ConnectedServiceName: 'CodeSigning-APEX' - FolderPath: 'artifacts\Release' - Pattern: '*.nupkg' - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "KeyCode" : "CP-401405", - "OperationSetCode" : "NuGetSign", - "Parameters" : [ - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd \"SHA256\"" - } - ], - "ToolName" : "sign", - "ToolVersion" : "1.0" - }, - { - "KeyCode" : "CP-401405", - "OperationSetCode" : "NuGetVerify", - "Parameters" : [], - "ToolName" : "sign", - "ToolVersion" : "1.0" - } - ] - - SessionTimeout: 20 - -- task: PowerShell@2 - displayName: 'main release' - inputs: - pwsh: true - failOnStderr: true - filePath: 'tools\Deployment\deploy.ps1' - arguments: '-main -targets release' - env: - NUGETAPIKEY: $(NugetAPIKey) - CHOCO_TOKEN: $(ChocoleteyPublishToken) - TOKEN: $(ServiceAccountGithubToken) - -- task: PublishBuildArtifacts@1 - condition: always() - displayName: 'upload docfx.zip' - inputs: - pathtoPublish: 'Documentation\tutorial\artifacts' - artifactName: docfx-artifacts - -- task: ComponentGovernanceComponentDetection@0 - displayName: 'Component Detection' - condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) \ No newline at end of file diff --git a/azure-pipelines-stable.yml b/azure-pipelines-stable.yml deleted file mode 100644 index a49204e0d90..00000000000 --- a/azure-pipelines-stable.yml +++ /dev/null @@ -1,198 +0,0 @@ -# This YAML is used for the docfx v2 daily pre-release CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=1743&_a=summary) - -pool: - name: 1ES-Pool - demands: ImageOverride -equals MMS2019 - -variables: -- group: docfx-v2-pipeline-kv -- name: NUGETEXE - value: nuget - -steps: - -- task: UseDotNet@2 - displayName: 'Install .NET Core SDK required for ESRPCodeSigning' - inputs: - packageType: sdk - version: '2.1.811' - -- task: UseDotNet@2 - displayName: 'Install .NET Core SDK required for docfx' - inputs: - packageType: sdk - version: '6.x' - -- task: NuGetToolInstaller@1 - displayName: 'Use NuGet' - inputs: - versionSpec: 5.9.1 - -- task: NodeTool@0 - displayName: "Use Node 16.x" - inputs: - versionSpec: 16.x - -- powershell: | - npm install -g npm-windows-upgrade - npm-windows-upgrade -v 8.13.2 - npm -v - displayName: Upgrade npm to latest version - -- task: PowerShell@2 - displayName: 'dev build' - inputs: - pwsh: true - failOnStderr: true - filePath: 'tools\Deployment\deploy.ps1' - -- task: UseDotNet@2 - displayName: 'Install .NET Core sdk required for ESRPCodeSigning' - inputs: - packageType: sdk - version: '2.1.811' - -- task: EsrpCodeSigning@1 - displayName: Sign docfx executables and dlls - inputs: - ConnectedServiceName: 'CodeSigning-APEX' - FolderPath: '$(Build.SourcesDirectory)/target/Release' - Pattern: | - **\Microsoft.DocAsCode.*.dll - **\*.exe - UseMinimatch: true - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "KeyCode": "CP-230012", - "OperationSetCode": "SigntoolSign", - "parameters": [ - { - "parameterName": "OpusName", - "parameterValue": "Microsoft" - }, - { - "parameterName": "OpusInfo", - "parameterValue": "http://www.microsoft.com" - }, - { - "parameterName": "PageHash", - "parameterValue": "/NPH" - }, - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd \"SHA256\"" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - }, - { - "KeyCode": "CP-230012", - "OperationSetCode": "SigntoolVerify", - "Parameters": [ - { - "parameterName": "VerifyAll", - "parameterValue": "/all" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - } - ] - SessionTimeout: '60' - MaxConcurrency: '50' - MaxRetryAttempts: '5' - -- task: EsrpCodeSigning@1 - displayName: Sign dependent dlls - inputs: - ConnectedServiceName: 'CodeSigning-APEX' - FolderPath: '$(Build.SourcesDirectory)/target/Release' - Pattern: | - **\*.dll - !**\System.*.dll - !**\Microsoft.!(DocAsCode).*.dll - !**\NuGet.*.dll - !**\FSharp.Core.*.dll - UseMinimatch: true - signConfigType: inlineSignParams - inlineOperation: | - [ - { - "KeyCode": "CP-231522", - "OperationSetCode": "SigntoolSign", - "parameters": [ - { - "parameterName": "OpusName", - "parameterValue": "Microsoft" - }, - { - "parameterName": "OpusInfo", - "parameterValue": "http://www.microsoft.com" - }, - { - "parameterName": "Append", - "parameterValue": "/as" - }, - { - "parameterName": "PageHash", - "parameterValue": "/NPH" - }, - { - "parameterName": "TimeStamp", - "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" - }, - { - "parameterName": "FileDigest", - "parameterValue": "/fd \"SHA256\"" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - }, - { - "KeyCode": "CP-231522", - "OperationSetCode": "SigntoolVerify", - "Parameters": [ - { - "parameterName": "VerifyAll", - "parameterValue": "/all" - } - ], - "ToolName": "sign", - "ToolVersion": "1.0" - } - ] - SessionTimeout: '60' - MaxConcurrency: '50' - MaxRetryAttempts: '5' - -- task: PowerShell@2 - displayName: 'dev release' - inputs: - pwsh: true - failOnStderr: true - filePath: 'tools\Deployment\deploy.ps1' - arguments: '-targets pack' - -- task: PublishBuildArtifacts@1 - condition: always() - inputs: - pathtoPublish: 'target\Release\docfx' - artifactName: target - -- task: PublishBuildArtifacts@1 - condition: always() - inputs: - pathtoPublish: 'test\docfx-seed\_site' - artifactName: docfx-seed-site - -- task: ComponentGovernanceComponentDetection@0 - displayName: 'Component Detection' - condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) \ No newline at end of file diff --git a/azure-pipelines-v2-lgtm.yml b/azure-pipelines-v2-lgtm.yml deleted file mode 100644 index 338832cf8f6..00000000000 --- a/azure-pipelines-v2-lgtm.yml +++ /dev/null @@ -1,88 +0,0 @@ -# This YAML is used for the docfx v2 LGTM CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=3920) - -trigger: - batch: true - branches: - include: - - dev - - main -pr: none - -variables: - LGTM.SnapshotIdentifiers: Build=Full - LGTM.SnapshotMetadata: Owner=OPSBuild - LGTM.UploadSnapshot: true - Semmle.SkipAnalysis: true - -pool: - vmImage: 'windows-latest' - -steps: - -- task: CredScan@2 - displayName: Security - CredScan - inputs: - toolMajorVersion: 'V2' - -- task: BinSkim@3 - displayName: Security - BinSkim - inputs: - InputType: 'Basic' - Function: 'analyze' - AnalyzeTarget: > - **/*.exe; - **/*.dll; - -- task: Semmle@0 - env: - SYSTEM_ACCESSTOKEN: $(System.AccessToken) - displayName: Security - LGTM - inputs: - toolVersion: 'LatestPreRelease' - sourceCodeDirectory: '$(Build.SourcesDirectory)' - language: 'csharp' - cleanupBuildCommands: 'dotnet clean' - buildCommands: 'dotnet build docfx.sln' - querySuite: 'Required' - timeout: '7200' - ram: '16384' - addProjectDirToScanningExclusionList: true - -- task: SdtReport@1 - displayName: Security - SdtReport - inputs: - Semmle: true - CredScan: true - BinSkim: true - ToolLogsNotFoundAction: 'Standard' - -- task: PublishSecurityAnalysisLogs@2 - displayName: Security - Publish Scan Results - inputs: - ArtifactName: 'CodeAnalysisLogs' - ArtifactType: 'Container' - AllTools: true - ToolLogsNotFoundAction: 'Standard' - -- task: TSAUpload@1 - inputs: - tsaVersion: 'TsaV2' - codebase: 'NewOrUpdate' - tsaEnvironment: 'PROD' - codeBaseName: 'Docs_default_v2' - areaPath: 'One\\DeveloperRelations' - iterationPath: 'One\\Custom\\_Default' - instanceUrlForTsaV2: MSAZURE - projectNameMSAZURE: One - uploadCredScan: true - uploadBinSkim: true - uploadSemmle: true - uploadAsync: true - -- task: PostAnalysis@1 - displayName: Security - PostAnalysis - inputs: - Semmle: true - CredScan: true - BinSkim: true - ToolLogsNotFoundAction: 'Standard' diff --git a/build.cmd b/build.cmd deleted file mode 100644 index d6d7187f205..00000000000 --- a/build.cmd +++ /dev/null @@ -1,4 +0,0 @@ -@ECHO OFF -PUSHD %~dp0 -pwsh -NoProfile -ExecutionPolicy Bypass -Command ".\build.ps1 %*; exit $LastExitCode;" -POPD \ No newline at end of file diff --git a/build.ps1 b/build.ps1 deleted file mode 100644 index 1e5cab8046e..00000000000 --- a/build.ps1 +++ /dev/null @@ -1,175 +0,0 @@ -param( - [string] $configuration = "Release", - [switch] $raw = $false, - [switch] $prod = $false, - [switch] $skipTests = $false, - [switch] $release = $false -) -################################################################################################ -# Usage: -# Run build.ps1 -# [-configuration Configuration]: Default to be Release -# [-raw]: If it's set, the build process will skip updating template -# [-prod]: If it's set, the build process will update version -# [-skipTests]: If it's set, running unit tests will be skipped -################################################################################################ - -# Include -$scriptRoot = $($MyInvocation.MyCommand.Definition) | Split-Path -. "$scriptRoot/common.ps1" - -$ErrorActionPreference = 'Stop' -$releaseBranch = "main" -$gitCommand = "git" -$framework = "net472" -$packageVersion = "1.0.0" -$assemblyVersion = "1.0.0.0" - -$os = GetOperatingSystemName -Write-Host "Running on OS $os" -$nugetCommand = GetNuGetCommandWithValidation ($os) -$scriptPath = $MyInvocation.MyCommand.Path -$scriptHome = Split-Path $scriptPath -$versionCsFolderPath = $scriptHome + "/TEMP/" -$versionCsFilePath = $versionCsFolderPath + "version.cs" -$versionFsFilePath = $versionCsFolderPath + "version.fs" - -$global:LASTEXITCODE = $null - -Push-Location $scriptHome - -# Check if dotnet cli exists globally -if (-not(ValidateCommand("dotnet"))) { - ProcessLastExitCode 1 "Dotnet CLI is not successfully configured. Please follow https://www.microsoft.com/net/core to install .NET Core." -} - -# Update template -if ($raw -eq $false) { - ./UpdateTemplate.ps1 - ProcessLastExitCode $lastexitcode "Update template" -} -else { - Write-Host "Skip updating template" -} - -if ($prod -eq $true) { - Write-Host "Updating version from ReleaseNote.md and GIT commit info" - - if (-not(ValidateCommand($gitCommand))) { - ProcessLastExitCode 1 "Git is required however it is not installed." - } - - if ($release -eq $false) { - $branch = & $gitCommand rev-parse --abbrev-ref HEAD - ProcessLastExitCode $lastexitcode "Get GIT branch name $branch" - } - else { - $branch = "main"; - Write-Host "Release version using $branch branch" - } - - $version = "v1", "0", "0" - - $firstLine = Get-Content ReleaseNote.md | Select-Object -First 1 - if ($firstLine -match ".*(v[0-9.]+)") { - $mainVersion = ($matches[1] -split '\.') - for ($i = 0; $i -lt $mainVersion.length -and $i -lt 3; $i++) { - $version[$i] = $mainVersion[$i] - } - } - - $commitInfo = (& $gitCommand describe --tags) -split '-' - - ProcessLastExitCode $lastexitcode "Get GIT commit information $commitInfo" - if ($commitInfo.length -gt 1) { - $revision = (Get-Date -UFormat "%Y%m%d").Substring(2) + $commitInfo[1].PadLeft(3, '0') - } - else { - $revision = '000000000' - } - - $assemblyVersion = (($version + '0') -join '.').Substring(1) - $assemblyFileVersion = (($version + $revision) -join '.').Substring(1) - if ($branch -ne $releaseBranch) { - $abbrev = $commitInfo[2].Substring(0, 7) - $packageVersion = ((($version -join '.'), "b", $revision, $abbrev) -join '-').Substring(1) - } - else { - $packageVersion = ($version -join ".").Substring(1) - } - - if (-not(Test-Path -Path $versionCsFolderPath)) { - New-Item -ItemType directory -Path $versionCsFolderPath - } - " -[assembly: System.Reflection.AssemblyVersionAttribute(""$assemblyVersion"")] -[assembly: System.Reflection.AssemblyFileVersionAttribute(""$assemblyFileVersion"")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute(""$assemblyFileVersion"")] - " | Out-File -FilePath $versionCsFilePath - Write-Host "Version file saved to $versionCsFilePath" -ForegroundColor Green - - " -namespace AssemblyInfo -[] -[] -[] -do () - " | Out-File -FilePath $versionFsFilePath - Write-Host "Version file saved to $versionFsFilePath" -ForegroundColor Green -} - -Write-Host "Using package version $packageVersion, and assembly version $assemblyVersion, assembly file version $assemblyFileVersion" - -$packageVersionFilePath = ".\package_version_temp.txt" -$packageVersion | Out-File -FilePath $packageVersionFilePath -Force -Write-Host "Package version saved to $packageVersionFilePath" - -foreach ($sln in (Get-ChildItem *.sln)) { - Write-Host "Start building $($sln.FullName)" - - & dotnet restore $sln.FullName /p:Version=$packageVersion - ProcessLastExitCode $lastexitcode "dotnet restore $($sln.FullName) /p:Version=$packageVersion" - - if ($os -eq "Windows") { - & dotnet build $sln.FullName -c $configuration -v n /m:1 - ProcessLastExitCode $lastexitcode "dotnet build $($sln.FullName) -c $configuration -v n /m:1" - } - else { - & msbuild $sln.FullName /p:Configuration=$configuration /verbosity:n /m:1 - ProcessLastExitCode $lastexitcode "msbuild $($sln.FullName) /p:Configuration=$configuration /verbosity:n /m:1" - } -} - -if (-not $skipTests) { - # Download test tools for UNIX - if (-not ($os -eq "Windows")) { - & $nugetCommand install xunit.runner.console -OutputDirectory TestTools -ExcludeVersion -Version 2.3.1 - ProcessLastExitCode $lastexitcode "$nugetCommand install xunit.runner.console -OutputDirectory TestTools -ExcludeVersion -Version 2.3.1" - } - - # Run unit test cases - Write-Host "Start running unit test" - $exclude = @("docfx.E2E.Tests.csproj", "NetCoreLibProject.fsproj", "NetCoreProject.fsproj") - foreach ($proj in (Get-ChildItem "test" -Exclude $exclude -Include @("*.csproj", "*.fsproj") -Recurse)) { - if ($os -eq "Windows") { - & dotnet test $proj.FullName --no-build -c $configuration - ProcessLastExitCode $lastexitcode "dotnet test $($proj.FullName) --no-build -c $configuration" - } - else { - & mono ./TestTools/xunit.runner.console/tools/net452/xunit.console.exe "$($proj.DirectoryName)/bin/$configuration/$framework/$($proj.BaseName).dll" - ProcessLastExitCode $lastexitcode "mono ./TestTools/xunit.runner.console/tools/net452/xunit.console.exe '$($proj.DirectoryName)/bin/$configuration/$framework/$($proj.BaseName).dll'" - } - } -} - -foreach ($proj in (Get-ChildItem -Path ("src", "plugins", "tools") -Include *.csproj -Recurse)) -{ - $name = $proj.BaseName - $outputFolder = "$scriptHome/target/$configuration/$name" - # publish to target folder - & dotnet publish $proj.FullName -c $configuration --no-build -f $framework -o $outputFolder - ProcessLastExitCode $lastexitcode "dotnet publish $($proj.FullName) -c $configuration --no-build -f $framework -o $outputFolder" -} - -Write-Host "Build succeeds." -ForegroundColor Green -Pop-Location \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100755 index 31fe532c735..00000000000 --- a/build.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -pushd "$(dirname "${BASH_SOURCE[0]}")" -pwsh -NoProfile -ExecutionPolicy Bypass -Command "./build.ps1 $@; exit $LastExitCode;" -popd - diff --git a/common.ps1 b/common.ps1 deleted file mode 100644 index 4de09d772bb..00000000000 --- a/common.ps1 +++ /dev/null @@ -1,56 +0,0 @@ -function GetOperatingSystemName() -{ - if ([environment]::OSVersion.Platform -eq "Win32NT") { - return "Windows" - } - else { - return "Linux" - } -} - -function ProcessLastExitCode { - param($exitCode, $msg) - if ($exitCode -eq 0) { - Write-Host "Success: $msg - " -ForegroundColor Green - } - else { - Write-Host "Error $($exitCode): $msg - " -ForegroundColor Red - Pop-Location - Exit 1 - } -} - -function ValidateCommand { - param($command) - return (Get-Command $command -ErrorAction SilentlyContinue) -ne $null -} - -function GetNuGetCommandWithValidation([string]$os, [bool]$downloadIfNotExist = $false) -{ - $nugetCommand = $null - if (ValidateCommand("nuget")) { - $nugetCommand = "nuget" - } elseIf ($os -eq "Windows") { - $localNugetExe = "$env:LOCALAPPDATA\Nuget\nuget.exe" - if (ValidateCommand($localNugetExe)) { - $nugetCommand = $localNugetExe - } elseIf ($downloadIfNotExist) { - Write-Host "Downloading NuGet.exe..." - mkdir -Path $(Split-Path $localNugetExe) -Force - $ProgressPreference = 'SilentlyContinue' - [Net.WebRequest]::DefaultWebProxy.Credentials = [Net.CredentialCache]::DefaultCredentials - - # Pin Nuget version to v5.9.1 to workaround for Nuget issue: /~https://github.com/NuGet/Home/issues/11125 - # Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile $nugetCommand - Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/v5.9.1/nuget.exe' -OutFile $localNugetExe - $nugetCommand = $localNugetExe - } - } - if ($nugetCommand) { - Write-Host "Using Nuget Command: $nugetCommand, $(& $nugetCommand help | Select -First 1)" - return $nugetCommand - } - ProcessLastExitCode 1 "Nuget is required however it is not installed." -} \ No newline at end of file diff --git a/docfx.sln b/docfx.sln index 9e766f7c066..6130fbf00ec 100644 --- a/docfx.sln +++ b/docfx.sln @@ -8,11 +8,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6A65A769-DAC src\Directory.Build.props = src\Directory.Build.props EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{718078B4-D34C-4697-AAD1-5844CBF60997}" - ProjectSection(SolutionItems) = preProject - NuGet.Config = NuGet.Config - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{F922E543-9AD4-4031-8BD1-8A7AA9771D1E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataContracts", "DataContracts", "{C3023E7B-AA8B-469E-8333-5737093A9D60}" diff --git a/pack.ps1 b/pack.ps1 deleted file mode 100644 index db31885dec2..00000000000 --- a/pack.ps1 +++ /dev/null @@ -1,113 +0,0 @@ -param([string] $configuration = "Release") - -# Include -$scriptRoot = $($MyInvocation.MyCommand.Definition) | Split-Path -. "$scriptRoot/common.ps1" - -$ErrorActionPreference = 'Stop' -$packageVersionFilePath = ".\package_version_temp.txt" # build.ps1 saves the package version to this temp file - -if (Test-Path $packageVersionFilePath){ - $packageVersion = Get-Content -Path $packageVersionFilePath - Write-Host "Package version: $packageVersion" -} -else{ - ProcessLastExitCode 1 "$packageVersionFilePath is not found. Please run build.ps1 to generate the file." -} - -$os = GetOperatingSystemName -Write-Host "Running on OS $os" -$nugetCommand = GetNuGetCommandWithValidation ($os) ($true) -$scriptPath = $MyInvocation.MyCommand.Path -$scriptHome = Split-Path $scriptPath - -$global:LASTEXITCODE = $null - -Push-Location $scriptHome - -function NugetPack { - param($basepath, $nuspec, $version) - if (Test-Path $nuspec) { - & $nugetCommand pack $nuspec -Version $version -OutputDirectory artifacts/$configuration -BasePath $basepath - ProcessLastExitCode $lastexitcode "$nugetCommand pack $nuspec -Version $version -OutputDirectory artifacts/$configuration -BasePath $basepath" - } -} - -# Check if dotnet cli exists globally -if (-not(ValidateCommand("dotnet"))) { - ProcessLastExitCode 1 "Dotnet CLI is not successfully configured. Please follow https://www.microsoft.com/net/core to install .NET Core." -} - -# dotnet pack first -foreach ($proj in (Get-ChildItem -Path ("src", "plugins") -Include *.[cf]sproj -Exclude 'docfx.msbuild.csproj' -Recurse)) { - if ($os -eq "Windows") { - if ($proj.FullName -like "*.csproj"){ - & dotnet pack $proj.FullName -c $configuration --no-build -o $scriptHome/artifacts/$configuration /p:Version=$packageVersion /p:OutputPath=$scriptHome/target/$configuration/$($proj.BaseName) - ProcessLastExitCode $lastexitcode "dotnet pack $($proj.FullName) -c $configuration --no-build -o $scriptHome/artifacts/$configuration /p:Version=$packageVersion /p:OutputPath=$scriptHome/target/$configuration/$($proj.BaseName)" - } - else { - & dotnet pack $proj.FullName -c $configuration -o $scriptHome/artifacts/$configuration /p:Version=$packageVersion - ProcessLastExitCode $lastexitcode "dotnet pack $($proj.FullName) -c $configuration -o $scriptHome/artifacts/$configuration /p:Version=$packageVersion" - } - } - else { - & nuget pack $($proj.FullName) -Properties Configuration=$configuration -OutputDirectory $scriptHome/artifacts/$configuration -Version $packageVersion -BasePath $scriptHome/target/$configuration/$($proj.BaseName) - ProcessLastExitCode $lastexitcode "nuget pack $($proj.FullName) -Properties Configuration=$configuration -OutputDirectory $scriptHome/artifacts/$configuration -Version $packageVersion -BasePath $scriptHome/target/$configuration/$($proj.BaseName)" - } -} - -# Pack docfx.console -$docfxTarget = "target/$configuration/docfx"; -if (-not(Test-Path -path $docfxTarget)) { - New-Item $docfxTarget -Type Directory -} - -Copy-Item -Path "src/nuspec/docfx.console/build" -Destination $docfxTarget -Force -Recurse -Copy-Item -Path "src/nuspec/docfx.console/content" -Destination $docfxTarget -Force -Recurse -Copy-Item -Path "LICENSE" -Destination $docfxTarget -Force - -$packages = @{ - "docfx" = @{ - "proj" = $null; - "nuspecs" = @("src/nuspec/docfx.console/docfx.console.nuspec"); - }; -} - -# Pack plugins -foreach ($proj in (Get-ChildItem -Path ("src", "plugins") -Include *.csproj -Recurse)) { - $name = $proj.BaseName - if ($packages.ContainsKey($name)) { - $packages[$name].proj = $proj - } - $nuspecs = Join-Path $proj.DirectoryName "*.nuspec" -Resolve - if ($nuspecs -ne $null) { - if ($packages.ContainsKey($name)) { - $packages[$name].nuspecs = $packages[$name].nuspecs + $nuspecs - } - else { - $packages[$name] = @{ - nuspecs = $nuspecs; - proj = $proj; - } - } - } -} - -foreach ($name in $packages.Keys) { - $val = $packages[$name] - $proj = $val.proj - - if ($proj -eq $null) { - Write-Host $package - ProcessLastExitCode 1 "$name does not have project found" - } - - $outputFolder = "$scriptHome/target/$configuration/$name" - $nuspecs = $val.nuspecs - foreach ($nuspec in $nuspecs) { - NugetPack $outputFolder $nuspec $packageVersion - } -} - -Write-Host "Pack succeeds." -ForegroundColor Green -Pop-Location \ No newline at end of file diff --git a/src/nuspec/chocolatey/docfx/docfx.nuspec b/src/nuspec/chocolatey/docfx/docfx.nuspec deleted file mode 100755 index 745f6d09104..00000000000 --- a/src/nuspec/chocolatey/docfx/docfx.nuspec +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - docfx - - - - 2.1 - /~https://github.com/dotnet/docfx/tree/dev/src/nuspec/chocolatey/docfx - - Microsoft - - - - - DocFX - Microsoft - /~https://github.com/dotnet/docfx - https://cdn.rawgit.com/ferventcoder/chocolatey-packages/3d0ce42525e12ad5b9cd528e8cbab011d8db4737/icons/docfx.svg - © Microsoft Corporation. All rights reserved. - /~https://github.com/dotnet/docfx/blob/master/LICENSE - true - /~https://github.com/dotnet/docfx - http://dotnet.github.io/docfx/ - - /~https://github.com/dotnet/docfx/issues - docfx markdown documentation codecomments GithubFlavoredMarkdown GFM DFM - DocFX makes it extremely easy to generate your API reference, landing page, and how-to. - DocFx is a documentation generation tool for API reference and Markdown files! - -*DocFX* is an API documentation generator for .NET, and currently it supports C# and VB. -It generates API reference documentation from triple-slash comments in your source code. -It also allows you to use Markdown files to create additional topics such as tutorials and how-tos, and to customize the generated reference documentation. -*DocFX* builds a static HTML website from your source code and Markdown files, which can be easily hosted on any web servers (for example, *github.io*). -Also, *DocFX* provides you the flexibility to customize the layout and style of your website through templates. -If you are interested in creating your own website with your own styles, you can follow [how to create custom template](howto_create_custom_template.md) to create custom templates. - -### Features - -* Website from Source Code and Markdown - DocFX generates Documentation directly from source code (.NET, RESTful API, JavaScript, Java, etc...) and Markdown files. -* Run Everywhere - DocFX runs on Linux, macOS, and Windows. The generated website can be deployed to any web host with no additional configurations, e.g. Github Pages, Azure Websites... -* Easy Customization - DocFX provides a flexible way to customize templates and themes easily. - - See /~https://github.com/dotnet/docfx/blob/master/RELEASENOTE.md - - - - - - - - - - - - diff --git a/src/nuspec/chocolatey/docfx/docfx.svg b/src/nuspec/chocolatey/docfx/docfx.svg deleted file mode 100755 index 4fb2b2e0f20..00000000000 --- a/src/nuspec/chocolatey/docfx/docfx.svg +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/src/nuspec/chocolatey/docfx/tools/VERIFICATION b/src/nuspec/chocolatey/docfx/tools/VERIFICATION deleted file mode 100644 index bb253b30a30..00000000000 --- a/src/nuspec/chocolatey/docfx/tools/VERIFICATION +++ /dev/null @@ -1,7 +0,0 @@ -VERIFICATION -Verification is intended to assist the Chocolatey moderators and community -in verifying that this package's contents are trustworthy. - -This package is published by the Docfx Project itself. - -The binaries are identical to other package types published by the project, in particular the docfx.console nuget package. \ No newline at end of file diff --git a/src/nuspec/chocolatey/docfx/tools/chocolateyinstall.ps1 b/src/nuspec/chocolatey/docfx/tools/chocolateyinstall.ps1 deleted file mode 100755 index b25323f37b6..00000000000 --- a/src/nuspec/chocolatey/docfx/tools/chocolateyinstall.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -$ErrorActionPreference = 'Stop'; - -$packageName= 'DocFX' -$version = 'v2.1' -$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$url = "/~https://github.com/dotnet/docfx/releases/download/$version/docfx.zip" -$hash = '7abd6dc579bdea1a74bed7beac1a770d13a88d8bcc44fadf509b8d5400fe1333' - -$packageArgs = @{ - packageName = $packageName - unzipLocation = $toolsDir - url = $url - checksum = $hash - checksumType = 'SHA256' -} - -Install-ChocolateyZipPackage @packageArgs diff --git a/src/nuspec/docfx.console/build/docfx.console.targets b/src/nuspec/docfx.console/build/docfx.console.targets deleted file mode 100644 index fb9bef871c6..00000000000 --- a/src/nuspec/docfx.console/build/docfx.console.targets +++ /dev/null @@ -1,61 +0,0 @@ - - - mono - <_BuildDocToolPrefixFinal Condition="'$(BuildDocToolPrefix)' != ''">"$(BuildDocToolPrefix)" - $(MSBuildThisFileDirectory)..\tools\docfx.exe - $(MSBuildProjectDirectory)/docfx.json - 8002 - False - $(OutputFolder)/_site - $(OutputFolder) - log.txt - Warning - true - false - - - False - False - - - - - - - - - - - - - - - - - True - - - - - - - - - - - - - - - - $(_BuildDocToolPrefixFinal)"$(BuildDocToolPath)" "$(DocfxConfigFile)" -o "$(MetadataOutputFolder)" -l "$(LogFile)" --logLevel "$(LogLevel)" - $(DocGenerateCommand) -f - $(DocGenerateCommand) --template "$(DocTemplate)" - $(DocGenerateCommand) $(DocParameters) - - - - - - - diff --git a/src/nuspec/docfx.console/content/.gitignore b/src/nuspec/docfx.console/content/.gitignore deleted file mode 100644 index c964faee15b..00000000000 --- a/src/nuspec/docfx.console/content/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ - -############### -# folder # -############### -/**/DROP/ -/**/TEMP/ -/**/packages/ -/**/bin/ -/**/obj/ -_site diff --git a/src/nuspec/docfx.console/content/api/.gitignore b/src/nuspec/docfx.console/content/api/.gitignore deleted file mode 100644 index b37a96f6e77..00000000000 --- a/src/nuspec/docfx.console/content/api/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ - -############### -# temp file # -############### -*.yml diff --git a/src/nuspec/docfx.console/content/api/index.md b/src/nuspec/docfx.console/content/api/index.md deleted file mode 100644 index 3fcdcb878b7..00000000000 --- a/src/nuspec/docfx.console/content/api/index.md +++ /dev/null @@ -1,3 +0,0 @@ - -# PLACEHOLDER -TODO: Add .NET projects to *src* folder and run `docfx` to generate a **REAL** *API Documentation*! diff --git a/src/nuspec/docfx.console/content/articles/intro.md b/src/nuspec/docfx.console/content/articles/intro.md deleted file mode 100644 index 1a210ba1e73..00000000000 --- a/src/nuspec/docfx.console/content/articles/intro.md +++ /dev/null @@ -1,2 +0,0 @@ - -# Add your introductions here! diff --git a/src/nuspec/docfx.console/content/articles/toc.md b/src/nuspec/docfx.console/content/articles/toc.md deleted file mode 100644 index 89dec33fcd4..00000000000 --- a/src/nuspec/docfx.console/content/articles/toc.md +++ /dev/null @@ -1 +0,0 @@ -#[Introduction](intro.md) diff --git a/src/nuspec/docfx.console/content/docfx.json b/src/nuspec/docfx.console/content/docfx.json deleted file mode 100644 index bacb80c953a..00000000000 --- a/src/nuspec/docfx.console/content/docfx.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "metadata": [ - { - "src": [ - { - "files": [ - "*.csproj" - ], - "cwd": ".", - "exclude": [ - "**/obj/**", - "**/bin/**", - "_site/**" - ] - } - ], - "dest": "obj/api" - } - ], - "build": { - "content": [ - { - "files": [ - "api/**.yml" - ], - "cwd": "obj" - }, - { - "files": [ - "api/*.md", - "articles/**.md", - "toc.yml", - "*.md" - ], - "exclude": [ - "obj/**", - "_site/**" - ] - } - ], - "resource": [ - { - "files": [ - "images/**" - ], - "exclude": [ - "obj/**", - "_site/**" - ] - } - ], - "overwrite": [ - { - "files": [ - "apidoc/**.md" - ], - "exclude": [ - "obj/**", - "_site/**" - ] - } - ], - "dest": "_site", - "template": [ - "default" - ] - } -} \ No newline at end of file diff --git a/src/nuspec/docfx.console/content/index.md b/src/nuspec/docfx.console/content/index.md deleted file mode 100644 index d2e24361989..00000000000 --- a/src/nuspec/docfx.console/content/index.md +++ /dev/null @@ -1,5 +0,0 @@ - -# This is the **HOMEPAGE**. -Refer to [Markdown](http://daringfireball.net/projects/markdown/) for how to write markdown files. -## Quick Start Notes: -1. Add images to *images* folder if the file is referencing an image. diff --git a/src/nuspec/docfx.console/content/toc.yml b/src/nuspec/docfx.console/content/toc.yml deleted file mode 100644 index 7eee9ffbfc4..00000000000 --- a/src/nuspec/docfx.console/content/toc.yml +++ /dev/null @@ -1,6 +0,0 @@ - -- name: Articles - href: articles/ -- name: API Documentation - href: obj/api/ - homepage: api/index.md diff --git a/src/nuspec/docfx.console/docfx.console.nuspec b/src/nuspec/docfx.console/docfx.console.nuspec deleted file mode 100644 index 0f0b41d5805..00000000000 --- a/src/nuspec/docfx.console/docfx.console.nuspec +++ /dev/null @@ -1,23 +0,0 @@ - - - - docfx.console - 1.0.0 - docfx.console - Microsoft - Microsoft - true - /~https://github.com/dotnet/docfx/blob/master/LICENSE - /~https://github.com/dotnet/docfx - true - This is a tool to generate API documentation for .NET projects. - Support generating both CSHARP and VB projects. - © Microsoft Corporation. All rights reserved. - Documentation API Metadata docascode docfx - - - - - - - diff --git a/src/nuspec/docfx.console/tools/install.ps1 b/src/nuspec/docfx.console/tools/install.ps1 deleted file mode 100644 index 2d02fa7cd16..00000000000 --- a/src/nuspec/docfx.console/tools/install.ps1 +++ /dev/null @@ -1,116 +0,0 @@ -param($installPath, $toolsPath, $package, $project) - -# open docfx.console on package install -# don't open if docfx.console is installed as a dependency - -try -{ - $url = "https://dotnet.github.io/docfx/install.html?version=" + $package.Version - $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) - - if ($dte2.ActiveWindow.Caption -eq "Package Manager Console") - { - # user is installing from VS NuGet console - # get reference to the window, the console host and the input history - # show webpage if "install-package docfx.console" was last input - - $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]) - - $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor ` - [System.Reflection.BindingFlags]::NonPublic) - - $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1 - if ($prop -eq $null) { return } - - $hostInfo = $prop.GetValue($consoleWindow) - if ($hostInfo -eq $null) { return } - - $history = $hostInfo.WpfConsole.InputHistory.History - - $lastCommand = $history | select -last 1 - - if ($lastCommand) - { - $lastCommand = $lastCommand.Trim().ToLower() - if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("docfx.console")) - { - $dte2.ItemOperations.Navigate($url) | Out-Null - } - } - } - else - { - # user is installing from VS NuGet dialog - # get reference to the window, then smart output console provider - # show webpage if messages in buffered console contains "installing...docfx.console" in last operation - - $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor ` - [System.Reflection.BindingFlags]::NonPublic) - - $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor ` - [System.Reflection.BindingFlags]::NonPublic) - - if ($instanceField -eq $null -or $consoleField -eq $null) { return } - - $instance = $instanceField.GetValue($null) - - if ($instance -eq $null) { return } - - $consoleProvider = $consoleField.GetValue($instance) - if ($consoleProvider -eq $null) { return } - - $console = $consoleProvider.CreateOutputConsole($false) - - $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor ` - [System.Reflection.BindingFlags]::NonPublic) - if ($messagesField -eq $null) { return } - - $messages = $messagesField.GetValue($console) - if ($messages -eq $null) { return } - - $operations = $messages -split "==============================" - - $lastOperation = $operations | select -last 1 - - if ($lastOperation) - { - $lastOperation = $lastOperation.ToLower() - - $lines = $lastOperation -split "`r`n" - - $installMatch = $lines | ? { $_.StartsWith("------- installing...docfx.console ") } | select -first 1 - - if ($installMatch) - { - $dte2.ItemOperations.Navigate($url) | Out-Null - } - } - } -} -catch -{ - try - { - $pmPane = $dte2.ToolWindows.OutputWindow.OutputWindowPanes.Item("Package Manager") - - $selection = $pmPane.TextDocument.Selection - $selection.StartOfDocument($false) - $selection.EndOfDocument($true) - - if ($selection.Text.StartsWith("Attempting to gather dependencies information for package 'docfx.console." + $package.Version + "'")) - { - # don't show on upgrade - if (!$selection.Text.Contains("Removed package")) - { - $dte2.ItemOperations.Navigate($url) | Out-Null - } - } - } - catch - { - # stop potential errors from bubbling up - # worst case the splash page won't open - } -} - -# still yolo \ No newline at end of file diff --git a/tools/Deployment/config.ps1 b/tools/Deployment/config.ps1 deleted file mode 100644 index f327187c6c5..00000000000 --- a/tools/Deployment/config.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -$homeDir = (Resolve-Path "$PSScriptRoot\..\..").Path - -$docfx = @{ - httpsRepoUrl = "/~https://github.com/dotnet/docfx.git" - httpsRepoUrlWithToken = "https://{0}@github.com/dotnet/docfx.git" - sshRepoUrl = "git@github.com-ci:dotnet/docfx.git" - docfxSeedRepoUrl = "/~https://github.com/docascode/docfx-seed.git" - docfxSeedHome = "$homeDir\test\docfx-seed" - targetFolder = "$homeDir\target" - artifactsFolder = "$homeDir\artifacts" - exe = "$homeDir\target\Release\docfx\docfx.exe" - releaseNotePath = "$homeDir\RELEASENOTE.md" - releaseFolder = "$homeDir\target\Release\docfx" - assetZipPath = "$homeDir\Documentation\tutorial\artifacts\docfx.zip" - siteFolder = "$homeDir\Documentation\_site" - docfxJson = "$homeDir\Documentation\docfx.json" -} - -$choco = @{ - homeDir = "$homeDir\src\nuspec\chocolatey\docfx" - nuspec = "$homeDir\src\nuspec\chocolatey\docfx\docfx.nuspec" - chocoScript = "$homeDir\src\nuspec\chocolatey\docfx\tools\chocolateyinstall.ps1" -} - -$nuget = @{ - "nuget.org" = "https://api.nuget.org/v3/index.json" -} - -$git = @{ - name = "DocFX CI" - email = "vscopbld@microsoft.com" - message = "Update gh-pages" -} \ No newline at end of file diff --git a/tools/Deployment/deploy-tasks.ps1 b/tools/Deployment/deploy-tasks.ps1 deleted file mode 100644 index c02eed719ee..00000000000 --- a/tools/Deployment/deploy-tasks.ps1 +++ /dev/null @@ -1,222 +0,0 @@ -function RemovePath { - param($pathToClean) - $pathToClean | Foreach-Object { - if (Test-Path $_) { - Remove-Item $_ -Recurse -Force - Write-Host "Removed $_" - } - } -} - -function GetCurrentVersionFromGitTag { - param($gitCommand) - $stdout = & $gitCommand describe --abbrev=0 --tags - return $stdout ? $stdout.Trim() : '' -} - -function GetVersionFromReleaseNote { - param($releaseNotePath) - if (Test-Path -Path $releaseNotePath) { - $regex = "\(Current\s+Version:\s+v([\d\.]+)\)" - $match = [regex]::Match($(Get-Content $releaseNotePath), $regex) - if ($match.Success -and ($match.Groups.Count -eq 2)) { - return $match.Groups[1].Value.Trim(); - } else { - throw "Can't parse version from `$releaseNotePath '$releaseNotePath' in current version part." - } - } else { - throw "`$releaseNotePath '$releaseNotePath' doesn't exist." - } -} - -function IsReleaseNoteVersionChanged { - param($gitCommand, $releaseNotePath) - $versionFromTag = GetCurrentVersionFromGitTag $gitCommand - $versionFromReleaseNote = GetVersionFromReleaseNote $releaseNotePath - Write-Host "Version from tag is '$versionFromTag', version from release note is 'v$versionFromReleaseNote'" - return ("v$versionFromReleaseNote".ToLower() -ne $versionFromTag.ToLower()) -} - -function PackAssetZip { - Param($releaseFolder, $assetZipPath) - Add-Type -AssemblyName System.IO.Compression - Add-Type -AssemblyName System.IO.Compression.FileSystem - [System.AppContext]::SetSwitch('Switch.System.IO.Compression.ZipFile.UseBackslash', $false) - try { - Write-Host "Start packing asset zip.." - $zip = [System.IO.Compression.ZipFile]::Open($assetZipPath, 'update') - Get-ChildItem "$releaseFolder\*" -File -Exclude '*.xml','*.pdb' | Foreach-Object { - [System.IO.Compression.ZipFileExtensions]::CreateEntryFromFile($zip, $_.FullName, (Split-Path $_.FullName -Leaf), [System.IO.Compression.CompressionLevel]::Optimal) | Out-Null - } - } catch { - throw "Failed to pack asset zip: $_" - } finally { - $zip.Dispose() - } -} - -function PublishToNuget { - param($nugetCommand, $sourceUrl, $artifactsFolder, $apiKey = "anything") - Write-Host "Start publishing packages to $sourceUrl.." - Get-ChildItem "$artifactsFolder/*.nupkg" -Recurse -Exclude "*.symbols.nupkg" | Foreach-Object -Parallel { - & $using:nugetCommand push $_ $using:apiKey -Source $using:sourceUrl -SkipDuplicate - } -} - -function UpdateChocoConfig { - param($chocoScriptPath, $chocoNuspecPath, $version, $hash) - $chocoScript = Get-Content $chocoScriptPath -Encoding UTF8 -Raw - $chocoScript = [Regex]::Replace($chocoScript, 'v[\d\.]+', "v$version") - $chocoScript = [Regex]::Replace($chocoScript, '(\$hash\s*=\s*[''"])([\d\w]+)([''"])', "`$hash = '$hash'") - $chocoScript | Set-Content $chocoScriptPath -Force -Encoding UTF8 - - $chocoNuspec = Get-Content $chocoNuspecPath -Encoding UTF8 -Raw - $chocoNuspec = [Regex]::Replace($chocoNuspec, '()[\d\.]+(<\/version>)', "$version") - $chocoNuspec | Set-Content $chocoNuspecPath -Force -Encoding UTF8 -} - -function PublishToChocolatey { - param($chocoCommand, $releaseNotePath, $assetZipPath, $chocoScript, $chocoNuspecPath, $chocoHomeDir, $token) - Write-Host "Start publishing to Chocolatey.." - $version = GetVersionFromReleaseNote $releaseNotePath - $nupkgName = "docfx.$version.nupkg" - $hash = ($assetZipPath | Get-FileHash -Algorithm SHA256).Hash.ToLower() - Write-Host "Use hash '$hash' for chocolatey package verification" - UpdateChocoConfig $chocoScript $chocoNuspecPath $version $hash - - Push-Location $chocoHomeDir - & $chocoCommand pack - & $chocoCommand apiKey -k $token -source https://push.chocolatey.org/ - - $chocoLogFile = "$PSScriptRoot\choco-push.log" - & $chocoCommand push $nupkgName --log-file=$chocoLogFile - if ($LastExitCode -ne 0) { - Write-Host "choco push failed." - if (Test-Path $chocoLogFile) { - Write-Host "Get detailed errors from choco log:`r`n$(Get-Content $chocoLogFile -Raw -Encoding UTF8)" - } - } - Pop-Location -} - -function GetDescriptionFromReleaseNote { - param($releaseNotePath) - if (Test-Path -Path $releaseNotePath) { - $regex = "\n\s*v[\d\.]+\s*\r?\n-{3,}\r?\n([\s\S]+?)(?:\r?\n\s*v[\d\.]+\s*\r?\n-{3,}|$)" - $regexOptions = [Text.RegularExpressions.RegexOptions]::IgnoreCase - $match = [Regex]::Match($(Get-Content $releaseNotePath -Raw), $regex, $regexOptions) - if ($match.Success -and ($match.Groups.Count -eq 2)) { - return $match.Groups[1].Value.Trim(); - } else { - throw "Can't parse description from `$releaseNotePath '$releaseNotePath' in current version part." - } - } else { - throw "`$releaseNotePath '$releaseNotePath' doesn't exist." - } -} - -function GetReleaseDescription { - param($releaseNotePath) - $version = GetVersionFromReleaseNote $releaseNotePath - $description = GetDescriptionFromReleaseNote $releaseNotePath - $releaseDescription = @{ - "tag_name" = "v$version" - "target_commitish" = "main" - "name" = "Version $version" - "body" = $description - } - return $releaseDescription -} - -$gitApiBaseUrl = "https://api.github.com" -function GetUserAndRepoFromGitSshUrl { - param($url) - $regex = "^git@(.+):(.+?)(\.git)?$" - $match = [regex]::Match($url, $regex) - if ($match.Success -and ($match.Groups.Count -eq 4)) { - return $match.Groups[2].Value.Trim(); - } else { - throw "Can't parse user and repo from '$url'" - } -} - -function GetGithubLatestRelease { - param($userAndRepo, $headers) - $params = @{ - Method = "GET" - Uri = "$gitApiBaseUrl/repos/$($userAndRepo)/releases/latest" - Headers = $headers - } - return Invoke-RestMethod @params -} - -function CreateGithubRelease { - param($description, $userAndRepo, $headers) - $params = @{ - Method = "POST" - Uri = "$gitApiBaseUrl/repos/$($userAndRepo)/releases" - Headers = $headers - Body = $description | ConvertTo-Json - ContentType = "application/json" - } - return Invoke-RestMethod @params -} - -function PublishGithubRelease { - param($description, $userAndRepo, $headers) - try { - Write-Host "Getting latest github release.." - $latestRelease = GetGithubLatestRelease $userAndRepo $headers - } catch { - if ($_.Exception.Response.StatusCode -ne 404) { - throw "Get github latest release failed($($_.Exception.Response.StatusCode.value__)): $($_.ErrorDetails.Message)" - } - } - if ($latestRelease.tag_name -eq $description.tag_name) { - throw "The release to create '$($description.tag_name)' has already been created on Github: '$($latestRelease.tag_name)' with id '$($latestRelease.id)'" - } - Write-Host "Latest release is '$($latestRelease.tag_name)', creating new github release '$($description.tag_name)'.." - $release = CreateGithubRelease $description $userAndRepo $headers - return $release.id -} - -function UploadAsset { - param($id, $assetInfo, $userAndRepo, $headers) - $params = @{ - Uri = "https://uploads.github.com/repos/$userAndRepo/releases/$id/assets?name=$($assetInfo.name)" - Method = 'POST' - Headers = $headers - ContentType = $assetInfo.contentType ?? 'application/zip' - Body = $assetInfo.data - } - return Invoke-WebRequest @params -} - -function PublishGithubAssets { - param($assetZipPath, $releaseId, $userAndRepo, $headers) - $assetInfo = @{ - contentType = "application/zip" - name = Split-Path $assetZipPath -leaf - data = [System.IO.File]::ReadAllBytes($assetZipPath) - } - Write-Host "Uploading asset to release '$releaseId'.." - UploadAsset $releaseId $assetInfo $userAndRepo $headers -} - -function PublishToGithub { - param($assetZipPath, $releaseNotePath, $sshRepoUrl, $token) - - $userAndRepo = GetUserAndRepoFromGitSshUrl $sshRepoUrl - $headers = @{ - "Accept" = "application/vnd.github.v3+json" - "Authorization" = "token $token" - } - - $releaseDescription = GetReleaseDescription $releaseNotePath - $releaseId = PublishGithubRelease $releaseDescription $userAndRepo $headers - if ($releaseId) { - PublishGithubAssets $assetZipPath $releaseId $userAndRepo $headers - } else { - throw "Invalid github release id '$releaseId' for release '$($releaseDescription.tag_name)'" - } -} \ No newline at end of file diff --git a/tools/Deployment/deploy.ps1 b/tools/Deployment/deploy.ps1 deleted file mode 100644 index 4389c8444b2..00000000000 --- a/tools/Deployment/deploy.ps1 +++ /dev/null @@ -1,83 +0,0 @@ -param( - [switch] $main = $false, - [ValidateSet('build', 'pack', 'release')] - [string[]] $targets = 'build' -) - -$ErrorActionPreference = "Stop" - -. "$PSScriptRoot\config.ps1" -. "$PSScriptRoot\deploy-tasks.ps1" -. "$homeDir\common.ps1" - -# Validate if tools are installed -$gitCommand = "git" -$chocoCommand = "choco" -$gitCommand,$chocoCommand | Foreach-Object { - if (-not (ValidateCommand $_)) { - ProcessLastExitCode 1 "$_ is required however it is not installed." - } -} -$nugetCommand = GetNuGetCommandWithValidation $(GetOperatingSystemName) $true - -Write-Host $($targets -join ",") -# Run release tasks -try { - switch ($targets) { - "build" { - # Remove artifact folder and target folder if exist - RemovePath $docfx.targetFolder,$docfx.artifactsFolder - # Run build.ps1 - $buildScriptPath = (Resolve-Path "$homeDir\build.ps1").Path - if ($main) { - & $buildScriptPath -prod -release - } else { - & $buildScriptPath -prod - } - # Run e2e test - & $gitCommand clone $docfx.docfxSeedRepoUrl $docfx.docfxSeedHome -q - & $docfx.exe "$($docfx.docfxSeedHome)\docfx.json" - & $docfx.exe $docfx.docfxJson - # Update github pages for main build if there is any change - if ($main) { - RemovePath "$($docfx.siteFolder)\.git" - & $gitCommand config --global core.autocrlf false - & $gitCommand clone $docfx.httpsRepoUrl -b gh-pages docfxsite -q - Copy-item "docfxsite\.git" -Destination $docfx.siteFolder -Recurse -Force - Push-Location $docfx.siteFolder - $stdout = & $gitCommand status --porcelain - if ($stdout) { - & $gitCommand config user.name $git.name - & $gitCommand config user.email $git.email - $repoUrlWithToken = $docfx.httpsRepoUrlWithToken -f $env:TOKEN - & $gitCommand remote set-url origin $repoUrlWithToken - & $gitCommand add . - & $gitCommand commit -m $git.message -q - & $gitCommand push origin gh-pages -q - } else { - Write-Host "Skipped updating gh-pages due to no local change." -ForegroundColor Yellow - } - Pop-Location - } - } - "pack" { - $packScriptPath = (Resolve-Path "$homeDir\pack.ps1").Path - & $packScriptPath - } - "release" { - if ($main) { - if (IsReleaseNoteVersionChanged $gitCommand $docfx.releaseNotePath) - { - PackAssetZip $docfx.releaseFolder $docfx.assetZipPath - PublishToNuget $nugetCommand $nuget."nuget.org" $docfx.artifactsFolder $env:NUGETAPIKEY - PublishToGithub $docfx.assetZipPath $docfx.releaseNotePath $docfx.sshRepoUrl $env:TOKEN - PublishToChocolatey $chocoCommand $docfx.releaseNotePath $docfx.assetZipPath $choco.chocoScript $choco.nuspec $choco.homeDir $env:CHOCO_TOKEN - } else { - Write-Host "`$releaseNotePath $($docfx.releaseNotePath) hasn't been changed. Ignore to publish package." -ForegroundColor Yellow - } - } - } - } -} catch { - ProcessLastExitCode 1 "Process failed: $_" -} \ No newline at end of file From 0f2e575555716fcfc7f5a077f77a5612ca3633bb Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Fri, 16 Dec 2022 21:59:27 +0800 Subject: [PATCH 2/3] chore!: .NET 6 only --- docfx.sln | 9 --- plugins/Directory.Build.props | 17 ++++- ...e.Build.MemberLevelManagedReference.csproj | 2 - ...soft.DocAsCode.Build.MergeOverwrite.csproj | 3 - ...cAsCode.Build.OperationLevelRestApi.csproj | 2 - ...oft.DocAsCode.Build.TagLevelRestApi.csproj | 2 - src/Directory.Build.props | 17 ++++- .../Microsoft.DocAsCode.Build.Common.csproj | 5 -- ...DocAsCode.Build.ConceptualDocuments.csproj | 1 - .../Microsoft.DocAsCode.Build.Engine.csproj | 7 -- ...ft.DocAsCode.Build.ManagedReference.csproj | 6 -- ....DocAsCode.Build.OverwriteDocuments.csproj | 3 - ...osoft.DocAsCode.Build.ResourceFiles.csproj | 2 - .../Microsoft.DocAsCode.Build.RestApi.csproj | 2 - ...rosoft.DocAsCode.Build.SchemaDriven.csproj | 7 -- ...oft.DocAsCode.Build.TableOfContents.csproj | 8 -- ....DocAsCode.Build.UniversalReference.csproj | 6 -- .../Microsoft.DocAsCode.Common.csproj | 6 -- ...soft.DocAsCode.DataContracts.Common.csproj | 7 -- ...Code.DataContracts.ManagedReference.csproj | 2 - ...oft.DocAsCode.DataContracts.RestApi.csproj | 2 - ...de.DataContracts.UniversalReference.csproj | 6 -- .../Microsoft.DocAsCode.Dfm.csproj | 9 --- .../Microsoft.DocAsCode.Glob.csproj | 9 --- .../Microsoft.DocAsCode.HtmlToPdf.csproj | 6 -- ....DocAsCode.MarkdigEngine.Extensions.csproj | 2 - ....DocAsCode.MarkdigEngine.Validators.csproj | 3 - .../Microsoft.DocAsCode.MarkdigEngine.csproj | 2 - ....DocAsCode.MarkdigMarkdownRewriters.csproj | 6 -- .../Microsoft.DocAsCode.MarkdownLite.csproj | 3 - ...de.Metadata.ManagedReference.Common.csproj | 10 --- ...de.Metadata.ManagedReference.FSharp.fsproj | 15 +--- ...de.Metadata.ManagedReference.Roslyn.csproj | 11 --- ...DocAsCode.Metadata.ManagedReference.csproj | 10 --- .../Microsoft.DocAsCode.Plugins.csproj | 2 - ...crosoft.DocAsCode.YamlSerialization.csproj | 7 +- src/Shared/base.net.props | 7 -- src/Shared/base.netstandard.props | 7 -- src/Shared/base.props | 7 -- src/Shared/common.props | 65 ---------------- src/docfx/app.config | 75 ------------------- src/docfx/app.manifest | 11 --- src/docfx/docfx.csproj | 8 +- test/Directory.Build.props | 13 +--- 44 files changed, 36 insertions(+), 374 deletions(-) delete mode 100644 src/Shared/base.net.props delete mode 100644 src/Shared/base.netstandard.props delete mode 100644 src/Shared/base.props delete mode 100644 src/Shared/common.props delete mode 100644 src/docfx/app.config delete mode 100644 src/docfx/app.manifest diff --git a/docfx.sln b/docfx.sln index 6130fbf00ec..c361b6f0f27 100644 --- a/docfx.sln +++ b/docfx.sln @@ -152,14 +152,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PDF", "PDF", "{15381BB2-762 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DocAsCode.MarkdigEngine.Extensions.Tests", "test\Microsoft.DocAsCode.MarkdigEngine.Extensions.Tests\Microsoft.DocAsCode.MarkdigEngine.Extensions.Tests.csproj", "{4C9CF944-2489-4AC2-9B18-497D12B53769}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{4A39EEF0-0517-4E95-ACE3-12836F91A0C6}" - ProjectSection(SolutionItems) = preProject - src\Shared\base.net.props = src\Shared\base.net.props - src\Shared\base.netstandard.props = src\Shared\base.netstandard.props - src\Shared\base.props = src\Shared\base.props - src\Shared\common.props = src\Shared\common.props - EndProjectSection -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -938,7 +930,6 @@ Global {C533106C-5699-450C-A18C-249364CBF58B} = {6A65A769-DAC3-4E99-96F9-991F4CE8D164} {15381BB2-762E-4841-8E5B-ACE727A3F2DA} = {6A65A769-DAC3-4E99-96F9-991F4CE8D164} {4C9CF944-2489-4AC2-9B18-497D12B53769} = {926A0726-B806-4215-82EF-AF8E22D0FACF} - {4A39EEF0-0517-4E95-ACE3-12836F91A0C6} = {6A65A769-DAC3-4E99-96F9-991F4CE8D164} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {6C12271F-8093-4D5D-8BEE-3318BFE40E23} diff --git a/plugins/Directory.Build.props b/plugins/Directory.Build.props index aac041421a4..cd9fab6b05e 100644 --- a/plugins/Directory.Build.props +++ b/plugins/Directory.Build.props @@ -1,8 +1,23 @@ + + net6.0 + Latest + + + + Microsoft + Microsoft + © Microsoft Corporation. All rights reserved. + + /~https://github.com/dotnet/docfx + /~https://github.com/dotnet/docfx/blob/dev/LICENSE + true + + all - runtime; build; native; contentfiles; analyzers; buildtransitive + runtime; build; native; contentfiles; analyzers \ No newline at end of file diff --git a/plugins/Microsoft.DocAsCode.Build.MemberLevelManagedReference/Microsoft.DocAsCode.Build.MemberLevelManagedReference.csproj b/plugins/Microsoft.DocAsCode.Build.MemberLevelManagedReference/Microsoft.DocAsCode.Build.MemberLevelManagedReference.csproj index 09aa60939a8..d49a6ee6f7b 100644 --- a/plugins/Microsoft.DocAsCode.Build.MemberLevelManagedReference/Microsoft.DocAsCode.Build.MemberLevelManagedReference.csproj +++ b/plugins/Microsoft.DocAsCode.Build.MemberLevelManagedReference/Microsoft.DocAsCode.Build.MemberLevelManagedReference.csproj @@ -1,6 +1,4 @@  - - PreserveNewest diff --git a/plugins/Microsoft.DocAsCode.Build.MergeOverwrite/Microsoft.DocAsCode.Build.MergeOverwrite.csproj b/plugins/Microsoft.DocAsCode.Build.MergeOverwrite/Microsoft.DocAsCode.Build.MergeOverwrite.csproj index d2de83a6bf1..e7ba451cf0d 100644 --- a/plugins/Microsoft.DocAsCode.Build.MergeOverwrite/Microsoft.DocAsCode.Build.MergeOverwrite.csproj +++ b/plugins/Microsoft.DocAsCode.Build.MergeOverwrite/Microsoft.DocAsCode.Build.MergeOverwrite.csproj @@ -1,6 +1,4 @@  - - @@ -8,5 +6,4 @@ - diff --git a/plugins/Microsoft.DocAsCode.Build.OperationLevelRestApi/Microsoft.DocAsCode.Build.OperationLevelRestApi.csproj b/plugins/Microsoft.DocAsCode.Build.OperationLevelRestApi/Microsoft.DocAsCode.Build.OperationLevelRestApi.csproj index 18a8ff30e92..45e69f73a43 100644 --- a/plugins/Microsoft.DocAsCode.Build.OperationLevelRestApi/Microsoft.DocAsCode.Build.OperationLevelRestApi.csproj +++ b/plugins/Microsoft.DocAsCode.Build.OperationLevelRestApi/Microsoft.DocAsCode.Build.OperationLevelRestApi.csproj @@ -1,6 +1,4 @@ - - PreserveNewest diff --git a/plugins/Microsoft.DocAsCode.Build.TagLevelRestApi/Microsoft.DocAsCode.Build.TagLevelRestApi.csproj b/plugins/Microsoft.DocAsCode.Build.TagLevelRestApi/Microsoft.DocAsCode.Build.TagLevelRestApi.csproj index 668b3ab8680..fedffca3a1b 100644 --- a/plugins/Microsoft.DocAsCode.Build.TagLevelRestApi/Microsoft.DocAsCode.Build.TagLevelRestApi.csproj +++ b/plugins/Microsoft.DocAsCode.Build.TagLevelRestApi/Microsoft.DocAsCode.Build.TagLevelRestApi.csproj @@ -1,6 +1,4 @@  - - PreserveNewest diff --git a/src/Directory.Build.props b/src/Directory.Build.props index aac041421a4..e5833e13164 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,8 +1,23 @@ + + net6.0 + Latest + + + + Microsoft + Microsoft + © Microsoft Corporation. All rights reserved. + + /~https://github.com/dotnet/docfx + /~https://github.com/dotnet/docfx/blob/dev/LICENSE + true + + all - runtime; build; native; contentfiles; analyzers; buildtransitive + runtime; build; native; contentfiles; analyzers \ No newline at end of file diff --git a/src/Microsoft.DocAsCode.Build.Common/Microsoft.DocAsCode.Build.Common.csproj b/src/Microsoft.DocAsCode.Build.Common/Microsoft.DocAsCode.Build.Common.csproj index 9c909e111b1..e8cfb5473e7 100644 --- a/src/Microsoft.DocAsCode.Build.Common/Microsoft.DocAsCode.Build.Common.csproj +++ b/src/Microsoft.DocAsCode.Build.Common/Microsoft.DocAsCode.Build.Common.csproj @@ -1,5 +1,4 @@  - @@ -13,8 +12,4 @@ - - - - diff --git a/src/Microsoft.DocAsCode.Build.ConceptualDocuments/Microsoft.DocAsCode.Build.ConceptualDocuments.csproj b/src/Microsoft.DocAsCode.Build.ConceptualDocuments/Microsoft.DocAsCode.Build.ConceptualDocuments.csproj index 70191fb4f1c..b629cb06f5d 100644 --- a/src/Microsoft.DocAsCode.Build.ConceptualDocuments/Microsoft.DocAsCode.Build.ConceptualDocuments.csproj +++ b/src/Microsoft.DocAsCode.Build.ConceptualDocuments/Microsoft.DocAsCode.Build.ConceptualDocuments.csproj @@ -1,5 +1,4 @@  - diff --git a/src/Microsoft.DocAsCode.Build.Engine/Microsoft.DocAsCode.Build.Engine.csproj b/src/Microsoft.DocAsCode.Build.Engine/Microsoft.DocAsCode.Build.Engine.csproj index daf2057d40e..5cd9d908709 100644 --- a/src/Microsoft.DocAsCode.Build.Engine/Microsoft.DocAsCode.Build.Engine.csproj +++ b/src/Microsoft.DocAsCode.Build.Engine/Microsoft.DocAsCode.Build.Engine.csproj @@ -1,5 +1,4 @@  - @@ -18,10 +17,4 @@ - - - - - - diff --git a/src/Microsoft.DocAsCode.Build.ManagedReference/Microsoft.DocAsCode.Build.ManagedReference.csproj b/src/Microsoft.DocAsCode.Build.ManagedReference/Microsoft.DocAsCode.Build.ManagedReference.csproj index 316df85f7cf..9f4f081a38c 100644 --- a/src/Microsoft.DocAsCode.Build.ManagedReference/Microsoft.DocAsCode.Build.ManagedReference.csproj +++ b/src/Microsoft.DocAsCode.Build.ManagedReference/Microsoft.DocAsCode.Build.ManagedReference.csproj @@ -1,5 +1,4 @@  - @@ -8,9 +7,4 @@ - - - - - diff --git a/src/Microsoft.DocAsCode.Build.OverwriteDocuments/Microsoft.DocAsCode.Build.OverwriteDocuments.csproj b/src/Microsoft.DocAsCode.Build.OverwriteDocuments/Microsoft.DocAsCode.Build.OverwriteDocuments.csproj index a94b2f5e0f2..2a4a1612d28 100644 --- a/src/Microsoft.DocAsCode.Build.OverwriteDocuments/Microsoft.DocAsCode.Build.OverwriteDocuments.csproj +++ b/src/Microsoft.DocAsCode.Build.OverwriteDocuments/Microsoft.DocAsCode.Build.OverwriteDocuments.csproj @@ -1,6 +1,4 @@  - - @@ -8,5 +6,4 @@ - diff --git a/src/Microsoft.DocAsCode.Build.ResourceFiles/Microsoft.DocAsCode.Build.ResourceFiles.csproj b/src/Microsoft.DocAsCode.Build.ResourceFiles/Microsoft.DocAsCode.Build.ResourceFiles.csproj index 68583914ddb..4494747e770 100644 --- a/src/Microsoft.DocAsCode.Build.ResourceFiles/Microsoft.DocAsCode.Build.ResourceFiles.csproj +++ b/src/Microsoft.DocAsCode.Build.ResourceFiles/Microsoft.DocAsCode.Build.ResourceFiles.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.Build.RestApi/Microsoft.DocAsCode.Build.RestApi.csproj b/src/Microsoft.DocAsCode.Build.RestApi/Microsoft.DocAsCode.Build.RestApi.csproj index 80f5ad326bb..95c618c537b 100644 --- a/src/Microsoft.DocAsCode.Build.RestApi/Microsoft.DocAsCode.Build.RestApi.csproj +++ b/src/Microsoft.DocAsCode.Build.RestApi/Microsoft.DocAsCode.Build.RestApi.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.Build.SchemaDriven/Microsoft.DocAsCode.Build.SchemaDriven.csproj b/src/Microsoft.DocAsCode.Build.SchemaDriven/Microsoft.DocAsCode.Build.SchemaDriven.csproj index 1416aa48814..a542b0d6cff 100644 --- a/src/Microsoft.DocAsCode.Build.SchemaDriven/Microsoft.DocAsCode.Build.SchemaDriven.csproj +++ b/src/Microsoft.DocAsCode.Build.SchemaDriven/Microsoft.DocAsCode.Build.SchemaDriven.csproj @@ -1,6 +1,4 @@  - - @@ -21,11 +19,6 @@ - - - - - diff --git a/src/Microsoft.DocAsCode.Build.TableOfContents/Microsoft.DocAsCode.Build.TableOfContents.csproj b/src/Microsoft.DocAsCode.Build.TableOfContents/Microsoft.DocAsCode.Build.TableOfContents.csproj index 87015697b89..f3d29fd9a41 100644 --- a/src/Microsoft.DocAsCode.Build.TableOfContents/Microsoft.DocAsCode.Build.TableOfContents.csproj +++ b/src/Microsoft.DocAsCode.Build.TableOfContents/Microsoft.DocAsCode.Build.TableOfContents.csproj @@ -1,6 +1,4 @@  - - @@ -10,10 +8,4 @@ - - - - - - diff --git a/src/Microsoft.DocAsCode.Build.UniversalReference/Microsoft.DocAsCode.Build.UniversalReference.csproj b/src/Microsoft.DocAsCode.Build.UniversalReference/Microsoft.DocAsCode.Build.UniversalReference.csproj index 4cf309df266..bcc4f14bfdf 100644 --- a/src/Microsoft.DocAsCode.Build.UniversalReference/Microsoft.DocAsCode.Build.UniversalReference.csproj +++ b/src/Microsoft.DocAsCode.Build.UniversalReference/Microsoft.DocAsCode.Build.UniversalReference.csproj @@ -1,14 +1,8 @@  - - - - - - diff --git a/src/Microsoft.DocAsCode.Common/Microsoft.DocAsCode.Common.csproj b/src/Microsoft.DocAsCode.Common/Microsoft.DocAsCode.Common.csproj index d806b56f3b1..2409eea9891 100644 --- a/src/Microsoft.DocAsCode.Common/Microsoft.DocAsCode.Common.csproj +++ b/src/Microsoft.DocAsCode.Common/Microsoft.DocAsCode.Common.csproj @@ -1,12 +1,6 @@  - - - - - - diff --git a/src/Microsoft.DocAsCode.DataContracts.Common/Microsoft.DocAsCode.DataContracts.Common.csproj b/src/Microsoft.DocAsCode.DataContracts.Common/Microsoft.DocAsCode.DataContracts.Common.csproj index 954e6ab5398..681bc01cf78 100644 --- a/src/Microsoft.DocAsCode.DataContracts.Common/Microsoft.DocAsCode.DataContracts.Common.csproj +++ b/src/Microsoft.DocAsCode.DataContracts.Common/Microsoft.DocAsCode.DataContracts.Common.csproj @@ -1,12 +1,5 @@  - - - - - - - diff --git a/src/Microsoft.DocAsCode.DataContracts.ManagedReference/Microsoft.DocAsCode.DataContracts.ManagedReference.csproj b/src/Microsoft.DocAsCode.DataContracts.ManagedReference/Microsoft.DocAsCode.DataContracts.ManagedReference.csproj index 6d2ac01d41e..06e63a79c10 100644 --- a/src/Microsoft.DocAsCode.DataContracts.ManagedReference/Microsoft.DocAsCode.DataContracts.ManagedReference.csproj +++ b/src/Microsoft.DocAsCode.DataContracts.ManagedReference/Microsoft.DocAsCode.DataContracts.ManagedReference.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.DataContracts.RestApi/Microsoft.DocAsCode.DataContracts.RestApi.csproj b/src/Microsoft.DocAsCode.DataContracts.RestApi/Microsoft.DocAsCode.DataContracts.RestApi.csproj index 52660889666..6f5905c21b3 100644 --- a/src/Microsoft.DocAsCode.DataContracts.RestApi/Microsoft.DocAsCode.DataContracts.RestApi.csproj +++ b/src/Microsoft.DocAsCode.DataContracts.RestApi/Microsoft.DocAsCode.DataContracts.RestApi.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.DataContracts.UniversalReference/Microsoft.DocAsCode.DataContracts.UniversalReference.csproj b/src/Microsoft.DocAsCode.DataContracts.UniversalReference/Microsoft.DocAsCode.DataContracts.UniversalReference.csproj index 8152c00a16d..c396d9b5313 100644 --- a/src/Microsoft.DocAsCode.DataContracts.UniversalReference/Microsoft.DocAsCode.DataContracts.UniversalReference.csproj +++ b/src/Microsoft.DocAsCode.DataContracts.UniversalReference/Microsoft.DocAsCode.DataContracts.UniversalReference.csproj @@ -1,10 +1,4 @@  - - - - - - diff --git a/src/Microsoft.DocAsCode.Dfm/Microsoft.DocAsCode.Dfm.csproj b/src/Microsoft.DocAsCode.Dfm/Microsoft.DocAsCode.Dfm.csproj index 336962676b7..d427765ddf2 100644 --- a/src/Microsoft.DocAsCode.Dfm/Microsoft.DocAsCode.Dfm.csproj +++ b/src/Microsoft.DocAsCode.Dfm/Microsoft.DocAsCode.Dfm.csproj @@ -1,6 +1,4 @@  - - @@ -10,13 +8,6 @@ - - - - - - - diff --git a/src/Microsoft.DocAsCode.Glob/Microsoft.DocAsCode.Glob.csproj b/src/Microsoft.DocAsCode.Glob/Microsoft.DocAsCode.Glob.csproj index bd55ec5a1b8..681bc01cf78 100644 --- a/src/Microsoft.DocAsCode.Glob/Microsoft.DocAsCode.Glob.csproj +++ b/src/Microsoft.DocAsCode.Glob/Microsoft.DocAsCode.Glob.csproj @@ -1,13 +1,4 @@  - - - Implements glob utility - - - - - - diff --git a/src/Microsoft.DocAsCode.HtmlToPdf/Microsoft.DocAsCode.HtmlToPdf.csproj b/src/Microsoft.DocAsCode.HtmlToPdf/Microsoft.DocAsCode.HtmlToPdf.csproj index 18031038a24..7b28658f9d5 100644 --- a/src/Microsoft.DocAsCode.HtmlToPdf/Microsoft.DocAsCode.HtmlToPdf.csproj +++ b/src/Microsoft.DocAsCode.HtmlToPdf/Microsoft.DocAsCode.HtmlToPdf.csproj @@ -1,6 +1,4 @@  - - @@ -17,8 +15,4 @@ - - - - \ No newline at end of file diff --git a/src/Microsoft.DocAsCode.MarkdigEngine.Extensions/Microsoft.DocAsCode.MarkdigEngine.Extensions.csproj b/src/Microsoft.DocAsCode.MarkdigEngine.Extensions/Microsoft.DocAsCode.MarkdigEngine.Extensions.csproj index e654f6d0d56..ab24c1eb8a0 100644 --- a/src/Microsoft.DocAsCode.MarkdigEngine.Extensions/Microsoft.DocAsCode.MarkdigEngine.Extensions.csproj +++ b/src/Microsoft.DocAsCode.MarkdigEngine.Extensions/Microsoft.DocAsCode.MarkdigEngine.Extensions.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.MarkdigEngine.Validators/Microsoft.DocAsCode.MarkdigEngine.Validators.csproj b/src/Microsoft.DocAsCode.MarkdigEngine.Validators/Microsoft.DocAsCode.MarkdigEngine.Validators.csproj index d2c43b94635..407c7044363 100644 --- a/src/Microsoft.DocAsCode.MarkdigEngine.Validators/Microsoft.DocAsCode.MarkdigEngine.Validators.csproj +++ b/src/Microsoft.DocAsCode.MarkdigEngine.Validators/Microsoft.DocAsCode.MarkdigEngine.Validators.csproj @@ -1,9 +1,6 @@ - - - \ No newline at end of file diff --git a/src/Microsoft.DocAsCode.MarkdigEngine/Microsoft.DocAsCode.MarkdigEngine.csproj b/src/Microsoft.DocAsCode.MarkdigEngine/Microsoft.DocAsCode.MarkdigEngine.csproj index c15ef0a7d49..9cee27f0421 100644 --- a/src/Microsoft.DocAsCode.MarkdigEngine/Microsoft.DocAsCode.MarkdigEngine.csproj +++ b/src/Microsoft.DocAsCode.MarkdigEngine/Microsoft.DocAsCode.MarkdigEngine.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.MarkdigMarkdownRewriters/Microsoft.DocAsCode.MarkdigMarkdownRewriters.csproj b/src/Microsoft.DocAsCode.MarkdigMarkdownRewriters/Microsoft.DocAsCode.MarkdigMarkdownRewriters.csproj index d9dbf57a237..790095490b8 100644 --- a/src/Microsoft.DocAsCode.MarkdigMarkdownRewriters/Microsoft.DocAsCode.MarkdigMarkdownRewriters.csproj +++ b/src/Microsoft.DocAsCode.MarkdigMarkdownRewriters/Microsoft.DocAsCode.MarkdigMarkdownRewriters.csproj @@ -1,13 +1,7 @@  - - - - - - \ No newline at end of file diff --git a/src/Microsoft.DocAsCode.MarkdownLite/Microsoft.DocAsCode.MarkdownLite.csproj b/src/Microsoft.DocAsCode.MarkdownLite/Microsoft.DocAsCode.MarkdownLite.csproj index a92055a869c..2650ef184a6 100644 --- a/src/Microsoft.DocAsCode.MarkdownLite/Microsoft.DocAsCode.MarkdownLite.csproj +++ b/src/Microsoft.DocAsCode.MarkdownLite/Microsoft.DocAsCode.MarkdownLite.csproj @@ -1,9 +1,6 @@ - - - diff --git a/src/Microsoft.DocAsCode.Metadata.ManagedReference.Common/Microsoft.DocAsCode.Metadata.ManagedReference.Common.csproj b/src/Microsoft.DocAsCode.Metadata.ManagedReference.Common/Microsoft.DocAsCode.Metadata.ManagedReference.Common.csproj index c785b2aeca7..0e1586787bb 100644 --- a/src/Microsoft.DocAsCode.Metadata.ManagedReference.Common/Microsoft.DocAsCode.Metadata.ManagedReference.Common.csproj +++ b/src/Microsoft.DocAsCode.Metadata.ManagedReference.Common/Microsoft.DocAsCode.Metadata.ManagedReference.Common.csproj @@ -1,6 +1,4 @@  - - @@ -17,12 +15,4 @@ - - - - - - - - diff --git a/src/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp.fsproj b/src/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp.fsproj index e1fa1cd264a..3f30b030962 100644 --- a/src/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp.fsproj +++ b/src/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp/Microsoft.DocAsCode.Metadata.ManagedReference.FSharp.fsproj @@ -1,10 +1,6 @@  - - false - - - full + net6.0 @@ -29,13 +25,4 @@ - - - - - - - - - diff --git a/src/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn.csproj b/src/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn.csproj index 997866265f7..d86371b0729 100644 --- a/src/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn.csproj +++ b/src/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn.csproj @@ -1,8 +1,5 @@  - - - true true @@ -40,12 +37,4 @@ - - - - - - - - diff --git a/src/Microsoft.DocAsCode.Metadata.ManagedReference/Microsoft.DocAsCode.Metadata.ManagedReference.csproj b/src/Microsoft.DocAsCode.Metadata.ManagedReference/Microsoft.DocAsCode.Metadata.ManagedReference.csproj index d0e5045fead..c63bb9687f3 100644 --- a/src/Microsoft.DocAsCode.Metadata.ManagedReference/Microsoft.DocAsCode.Metadata.ManagedReference.csproj +++ b/src/Microsoft.DocAsCode.Metadata.ManagedReference/Microsoft.DocAsCode.Metadata.ManagedReference.csproj @@ -1,6 +1,4 @@  - - @@ -12,14 +10,6 @@ - - - - - - - - diff --git a/src/Microsoft.DocAsCode.Plugins/Microsoft.DocAsCode.Plugins.csproj b/src/Microsoft.DocAsCode.Plugins/Microsoft.DocAsCode.Plugins.csproj index 15ba0ec74f7..726a2972d0d 100644 --- a/src/Microsoft.DocAsCode.Plugins/Microsoft.DocAsCode.Plugins.csproj +++ b/src/Microsoft.DocAsCode.Plugins/Microsoft.DocAsCode.Plugins.csproj @@ -1,6 +1,4 @@  - - diff --git a/src/Microsoft.DocAsCode.YamlSerialization/Microsoft.DocAsCode.YamlSerialization.csproj b/src/Microsoft.DocAsCode.YamlSerialization/Microsoft.DocAsCode.YamlSerialization.csproj index e2f3202bf09..0e652e62aa8 100644 --- a/src/Microsoft.DocAsCode.YamlSerialization/Microsoft.DocAsCode.YamlSerialization.csproj +++ b/src/Microsoft.DocAsCode.YamlSerialization/Microsoft.DocAsCode.YamlSerialization.csproj @@ -1,11 +1,6 @@  - - - - - - + diff --git a/src/Shared/base.net.props b/src/Shared/base.net.props deleted file mode 100644 index 87a713df03c..00000000000 --- a/src/Shared/base.net.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - - net6.0;net472 - - diff --git a/src/Shared/base.netstandard.props b/src/Shared/base.netstandard.props deleted file mode 100644 index f955de01e19..00000000000 --- a/src/Shared/base.netstandard.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - - netstandard2.0;net472 - - diff --git a/src/Shared/base.props b/src/Shared/base.props deleted file mode 100644 index b68c7e36f28..00000000000 --- a/src/Shared/base.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - - net472 - - diff --git a/src/Shared/common.props b/src/Shared/common.props deleted file mode 100644 index 4124e86a703..00000000000 --- a/src/Shared/common.props +++ /dev/null @@ -1,65 +0,0 @@ - - - - - $(MSBuildProjectName) - $(MSBuildProjectName) - $(MSBuildProjectName) - $(MSBuildProjectName) - Microsoft - Microsoft - © Microsoft Corporation. All rights reserved. - - /~https://github.com/dotnet/docfx - /~https://github.com/dotnet/docfx/blob/dev/LICENSE - true - $(Product) - - $(MSBuildThisFileDirectory)..\..\TEMP\version.cs - $(MSBuildThisFileDirectory)..\..\TEMP\version.fs - true - - false - false - false - - Debug - AnyCPU - $(AssemblyName) - true - prompt - - - Library - false - true - - - false - 4 - - Latest - - - - - full - false - DEBUG;TRACE - - - pdbonly - true - TRACE - - - - - - - - - - - - diff --git a/src/docfx/app.config b/src/docfx/app.config deleted file mode 100644 index 7bf6c1de5fb..00000000000 --- a/src/docfx/app.config +++ /dev/null @@ -1,75 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/docfx/app.manifest b/src/docfx/app.manifest deleted file mode 100644 index 7d267f8dad3..00000000000 --- a/src/docfx/app.manifest +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - true - - - - \ No newline at end of file diff --git a/src/docfx/docfx.csproj b/src/docfx/docfx.csproj index 4687b55b8dd..0023edc5ad1 100644 --- a/src/docfx/docfx.csproj +++ b/src/docfx/docfx.csproj @@ -1,9 +1,8 @@  - Exe + true Generates documentation directly from source code and MarkDown files - app.manifest @@ -42,9 +41,4 @@ - - - - - diff --git a/test/Directory.Build.props b/test/Directory.Build.props index ccd5e8e1f5b..5900819a71b 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -1,11 +1,7 @@ - net6.0;net472 + net6.0 Latest - - true - true - true @@ -13,11 +9,4 @@ - - - - - - - From a14606490dd5136baf65a4fad5b7d692303601f1 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Fri, 16 Dec 2022 22:35:17 +0800 Subject: [PATCH 3/3] ci: Release using GH action --- .github/workflows/codeql.yml | 42 +++++++++++++---------------------- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 4 +--- 3 files changed, 59 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9eb93bb4e96..c3a0358ed0c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,39 +1,29 @@ -name: CodeQL - +name: codeql on: push: branches: [ dev ] - pull_request: - branches: [ dev ] schedule: - - cron: '28 6 * * 5' - + - cron: '0 0 * * 0' jobs: - analyze: - name: CodeQL - runs-on: windows-2019 - + codeql: + runs-on: windows-latest permissions: security-events: write - strategy: - fail-fast: false - matrix: - language: [ 'csharp', 'javascript' ] - steps: - - name: Checkout repository - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - uses: actions/setup-dotnet@v1 with: - fetch-depth: 0 + dotnet-version: 6.x - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + - uses: github/codeql-action/init@v1 with: - languages: ${{ matrix.language }} - config-file: ./.github/codeql-config.yml - - - run: pwsh .\tools\Deployment\deploy.ps1 + languages: ['csharp', 'javascript'] + + - run: ./UpdateTemplate.ps1 + - run: dotnet build -c Release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - uses: github/codeql-action/analyze@v1 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..eabe384a120 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: release +on: + release: + types: [published] + +jobs: + build: + runs-on: windows-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.x + + - run: ./UpdateTemplate.ps1 + - run: dotnet pack -c Release -o drop /p:Version=${{ github.ref_name }} + + - uses: actions/upload-artifact@v3 + with: + name: docfx + path: drop + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.x' + - uses: actions/download-artifact@v3 + with: + name: docfx + path: drop + - run: | + for filename in ./drop/*.nupkg; do + dotnet nuget push "$filename" --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json + done \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a73783d492..7f0aa6e2ebb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test +name: test on: pull_request: branches: [ dev, main, feature/* ] @@ -7,11 +7,9 @@ on: jobs: test: - name: Test runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 with: node-version: 16