-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from Youssef1313/opensans
feat: Uno.Fonts.OpenSans
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,12 +114,51 @@ jobs: | |
name: NuGet | ||
path: nuget\Roboto\Uno.Fonts.Roboto\artifacts | ||
|
||
build_opensans: | ||
name: Build OpenSans | ||
runs-on: windows-latest | ||
env: | ||
WIN_SDK_VERSION: '18362' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '7.0.100' | ||
|
||
- name: Setup GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.10.3' | ||
|
||
- name: GitVersion | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
configFilePath: build/gitversion.yml | ||
|
||
- name: Pack OpenSans Font | ||
run: | | ||
$adjustedPackageVersion="${{ steps.gitversion.outputs.semVer }}".ToLower(); | ||
dotnet pack nuget\OpenSans\Uno.Fonts.OpenSans\Uno.Fonts.OpenSans.csproj -c Release -p:PackageVersion=$adjustedPackageVersion -p:PackageOutputPath=artifacts | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: NuGet | ||
path: nuget\OpenSans\Uno.Fonts.OpenSans\artifacts | ||
|
||
publish: | ||
name: Publish | ||
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }} | ||
environment: NuGet | ||
runs-on: windows-latest | ||
needs: [build_fluent, build_roboto] | ||
needs: [build_fluent, build_roboto, build_opensans] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
Empty file.
Binary file added
BIN
+567 KB
nuget/OpenSans/Uno.Fonts.OpenSans/Fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf
Binary file not shown.
Binary file added
BIN
+517 KB
nuget/OpenSans/Uno.Fonts.OpenSans/Fonts/OpenSans-Regular-VariableFont_wdth,wght.ttf
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
nuget/OpenSans/Uno.Fonts.OpenSans/Uno.Fonts.OpenSans.csproj
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard1.0</TargetFramework> | ||
<Authors>Uno Platform</Authors> | ||
<PackageProjectUrl>https://github.com/unoplatform/uno.fonts</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/unoplatform/uno.fonts</RepositoryUrl> | ||
<Copyright>Copyright (C) 2015-$([System.DateTime]::Now.ToString(`yyyy`)) Uno Platform inc. - all rights reserved</Copyright> | ||
<PackageId>Uno.Fonts.OpenSans</PackageId> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<LangVersion>10.0</LangVersion> | ||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | ||
<Nullable>enable</Nullable> | ||
<WarningsAsErrors>enable</WarningsAsErrors> | ||
<Title>Uno Platform Open Sans Font</Title> | ||
<Product>$(AssemblyName) ($(TargetFramework))</Product> | ||
<Description>Uno Platform Open Sans Font</Description> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<IncludeContentInPack>true</IncludeContentInPack> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="../../icon.png" Pack="true" PackagePath="icon.png" /> | ||
<None Include="../Uno.Fonts.OpenSans.uprimarker" Pack="true" PackagePath="lib/$(TargetFramework)/" /> | ||
<None Include="Fonts/*.ttf" Pack="true" PackagePath="lib/$(TargetFramework)/Uno.Fonts.OpenSans/Fonts/" /> | ||
</ItemGroup> | ||
</Project> |