Skip to content

Commit 19755e7

Browse files
committed
Merge branch 'release/v0.0.1-alpha'
2 parents 2a62994 + 20faee1 commit 19755e7

File tree

6 files changed

+111
-8897
lines changed

6 files changed

+111
-8897
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# ASP.NET Core
2+
3+
# Build and test ASP.NET Core projects targeting .NET Core.
4+
# Add steps that run tests, create a NuGet package, deploy, and more:
5+
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
6+
7+
trigger:
8+
- develop
9+
- release/*
10+
11+
pr:
12+
- master
13+
- develop
14+
15+
pool:
16+
vmImage: 'ubuntu-latest'
17+
18+
variables:
19+
buildConfiguration: 'Debug'
20+
21+
steps:
22+
23+
# Install .NET Core SDK
24+
- task: DotNetCoreInstaller@1
25+
inputs:
26+
version: '2.2.402'
27+
- task: DotNetCoreInstaller@1
28+
inputs:
29+
version: '3.0.100-rc1-014190'
30+
31+
# SonarCloud Prepare Analysis
32+
- task: SonarCloudPrepare@1
33+
inputs:
34+
SonarCloud: 'SonarCloud Daniel127'
35+
organization: 'daniel127'
36+
scannerMode: 'MSBuild'
37+
projectKey: 'semanticui-razor-components'
38+
projectName: 'Semantic UI Razor Components'
39+
40+
# Build solution
41+
- task: DotNetCoreCLI@2
42+
inputs:
43+
command: 'build'
44+
arguments: '--configuration $(buildConfiguration)'
45+
46+
# SonarCloud analyze and publish results
47+
- task: SonarCloudAnalyze@1
48+
- task: SonarCloudPublish@1
49+
inputs:
50+
pollingTimeoutSec: '300'

.azure/workflows/azure-ci-release.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77
trigger:
88
- master
9-
- develop
10-
- release/*
11-
12-
pr:
13-
- master
14-
- develop
159

1610
pool:
1711
vmImage: 'ubuntu-latest'
1812

1913
variables:
2014
buildConfiguration: 'Release'
15+
packageVersion: 'null'
2116

2217
steps:
2318

19+
- task: Bash@3
20+
inputs:
21+
filePath: '.azure/workflows/configure-variables-release.sh'
22+
failOnStderr: true
23+
2424
# Install .NET Core SDK
2525
- task: DotNetCoreInstaller@1
2626
inputs:
@@ -48,4 +48,18 @@ steps:
4848
- task: SonarCloudAnalyze@1
4949
- task: SonarCloudPublish@1
5050
inputs:
51-
pollingTimeoutSec: '300'
51+
pollingTimeoutSec: '300'
52+
53+
- task: DotNetCoreCLI@2
54+
inputs:
55+
command: 'pack'
56+
packagesToPack: '**/*.csproj'
57+
nobuild: true
58+
versioningScheme: 'byEnvVar'
59+
versionEnvVar: '$(packageVersion)'
60+
61+
- task: PublishBuildArtifacts@1
62+
inputs:
63+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
64+
ArtifactName: 'drop'
65+
publishLocation: 'Container'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
function check_version() {
3+
if [[ $1 =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
4+
echo "$1"
5+
else
6+
echo ""
7+
fi
8+
}
9+
10+
echo "Configuring package version"
11+
12+
commitId=$BUILD_SOURCEVERSION
13+
14+
gitTagVersion="$(git describe --exact-match $commitId --abbrev=0 --tags --first-parent)"
15+
appVersion=${gitTagVersion:1}
16+
echo "Git version: $gitTagVersion"
17+
echo "App version: $appVersion"
18+
19+
if [[ ! $(check_version ${appVersion}) ]]; then
20+
exit 1;
21+
fi
22+
23+
echo "##vso[task.setvariable variable=packageVersion]$appVersion"
24+
echo "Finished"

.github/workflows/ci-release.yml.backup renamed to .github/workflows/ci-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
with:
1515
dotnet-version: 3.0.100-rc1-014190
1616
- name: Build with dotnet
17-
run: dotnet build --configuration Release
17+
run: dotnet build --configuration Debug

QD.Components.Semantic/QD.Components.Semantic.csproj

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RazorLangVersion>3.0</RazorLangVersion>
6-
</PropertyGroup>
7-
8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<DocumentationFile>\QD.Components.Semantic.xml</DocumentationFile>
6+
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
7+
<RepositoryUrl>https://github.com/Daniel127/SemanticUI-Razor-Components</RepositoryUrl>
8+
<PackageProjectUrl>https://github.com/Daniel127/SemanticUI-Razor-Components</PackageProjectUrl>
9+
<RepositoryType>git</RepositoryType>
10+
<PackageTags>Components;Component;Blazor;Razor;Semantic;UI</PackageTags>
11+
<Authors>Daniel Quiñones</Authors>
1012
</PropertyGroup>
1113

1214
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
13-
<DocumentationFile>\QD.Components.Semantic.xml</DocumentationFile>
15+
<DocumentationFile>.\QD.Components.Semantic.xml</DocumentationFile>
1416
</PropertyGroup>
1517

1618

@@ -19,4 +21,12 @@
1921
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-rc1.19457.4" />
2022
</ItemGroup>
2123

24+
25+
<ItemGroup>
26+
<None Include="..\LICENSE.md">
27+
<Pack>True</Pack>
28+
<PackagePath></PackagePath>
29+
</None>
30+
</ItemGroup>
31+
2232
</Project>

0 commit comments

Comments
 (0)