File tree 4 files changed +8
-16
lines changed
4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ install:
17
17
build_script :
18
18
- ps : dotnet --version
19
19
- ps : dotnet restore
20
- - ps : dotnet build --no-restore -c Release
20
+ - ps : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
21
21
- ps : dotnet test --no-restore /p:SkipBuildVersioning=true
22
- - ps : dotnet pack --no-build -c Release /p:PackageOutputPath=$env:BUILD_ARTIFACT_PATH
22
+ - ps : dotnet pack --no-build -c Release /p:PackageOutputPath=$env:BUILD_ARTIFACT_PATH /p:ContinuousIntegrationBuild=true
23
23
24
24
test : false
25
25
artifacts :
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ jobs:
34
34
- name : Install dependencies
35
35
run : dotnet restore
36
36
- name : Build
37
- run : dotnet build --no-restore -c Release
37
+ run : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
38
38
- name : Test with Coverage
39
39
run : dotnet test --no-restore --logger trx --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage --collect "XPlat Code Coverage" --settings CodeCoverage.runsettings /p:SkipBuildVersioning=true
40
40
- name : Pack
41
- run : dotnet pack --no-build -c Release /p:PackageOutputPath=${{env.BUILD_ARTIFACT_PATH}}
41
+ run : dotnet pack --no-build -c Release /p:PackageOutputPath=${{env.BUILD_ARTIFACT_PATH}} /p:ContinuousIntegrationBuild=true
42
42
- name : Publish artifacts
43
43
uses : actions/upload-artifact@v2
44
44
with :
Original file line number Diff line number Diff line change 7
7
vmImage : ubuntu-latest
8
8
9
9
variables :
10
- BUILD_CONFIGURATION : Release
11
10
BUILD_ARTIFACT_PATH : $(Build.ArtifactStagingDirectory)
12
11
13
12
steps :
@@ -17,13 +16,13 @@ jobs:
17
16
- script : dotnet restore
18
17
displayName : Install dependencies
19
18
20
- - script : dotnet build --no-restore -c $(BUILD_CONFIGURATION)
19
+ - script : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
21
20
displayName : Build
22
21
23
22
- script : dotnet test --no-restore /p:SkipBuildVersioning=true
24
23
displayName : Test
25
24
26
- - script : dotnet pack --no-build -c $(BUILD_CONFIGURATION) /p:PackageOutputPath=$(BUILD_ARTIFACT_PATH)
25
+ - script : dotnet pack --no-build -c Release /p:PackageOutputPath=$(BUILD_ARTIFACT_PATH) /p:ContinuousIntegrationBuild=true
27
26
displayName : Pack
28
27
29
28
- task : PublishBuildArtifacts@1
Original file line number Diff line number Diff line change 7
7
8
8
<PackageId >$(AssemblyName)</PackageId >
9
9
<PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
10
- <PackageLicenseFile >License.txt</ PackageLicenseFile >
10
+ <PackageLicenseExpression >MIT</ PackageLicenseExpression >
11
11
<PackageProjectUrl >https://github.com/TurnerSoftware/BuildVersioning</PackageProjectUrl >
12
12
<PackageBaseTags >semver;semantic;versioning;git</PackageBaseTags >
13
-
14
- <RepositoryUrl >https://github.com/TurnerSoftware/BuildVersioning.git</RepositoryUrl >
15
- <RepositoryType >git</RepositoryType >
16
- <RepositoryBranch >main</RepositoryBranch >
17
13
18
14
<!-- SourceLink Support -->
19
15
<PublishRepositoryUrl >true</PublishRepositoryUrl >
23
19
24
20
<LangVersion >Latest</LangVersion >
25
21
</PropertyGroup >
22
+
26
23
<ItemGroup >
27
24
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" All" />
28
25
</ItemGroup >
29
-
30
- <ItemGroup >
31
- <None Include =" ..\..\License.txt" Pack =" true" PackagePath =" $(PackageLicenseFile)" />
32
- </ItemGroup >
33
26
34
27
</Project >
You can’t perform that action at this time.
0 commit comments