Skip to content

Commit

Permalink
build: Publish GeneXus.Drawing to nuget.org (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
anaiberta authored Sep 9, 2024
1 parent 2721a53 commit fa1b383
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github/ @genexuslabs/workflow-codeowners
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,11 @@ jobs:
switch -regex ($Env:GITHUB_REF_NAME) {
'^main' {
#$PUBLISH_TO_NUGETORG = 'true'
#---
# Temporary publish to an internal feed with prerelease tag 'trunk'
# while we are working in the first release
$PUBLISH_TO_NUGETORG = 'false'
$VersionTag = 'trunk'
#---
}
$PUBLISH_TO_NUGETORG = 'true'
}
default {
$PUBLISH_TO_NUGETORG = 'false'
$VersionTag = "dev"
$VersionTag = "alpha"
if ([string]::IsNullOrEmpty("${{ github.event.inputs.force-dev-push }}") ) {
$doPush = $false
} else {
Expand Down Expand Up @@ -90,7 +83,7 @@ jobs:
$bytes = [Convert]::FromBase64String($Env:PFX_BASE64)
[IO.File]::WriteAllBytes($codesign_pfx, $bytes)
Get-ChildItem .\_packages\$Env:Configuration\*.nupkg -Recurse |
Get-ChildItem .\_packages\$Env:Configuration\*.nupkg -Recurse | ForEach-Object {
dotnet nuget sign $_.FullName --certificate-path $codesign_pfx --certificate-password $Env:PFX_PASS --timestamper $Env:TIMESTAMPER_URL
}
Expand Down
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
[![Build & Publish](https://github.com/genexuslabs/GeneXus.Drawing-DotNet/actions/workflows/build.yml/badge.svg)](https://github.com/genexuslabs/GeneXus.Drawing-DotNet/actions/workflows/build.yml)

# GeneXus.Drawing-DotNet
A cross-platform implementation of selected `System.Drawing` elements tailored for GeneXus development.

## Status
| Branch | Build
|--------|---
| main | |[![](https://github.com/genexuslabs/GeneXus.Drawing-DotNet/workflows/Build/badge.svg?branch=main)](https://github.com/genexuslabs/genexus.drawing-dotnet/actions?query=workflow%3ABuild+branch%3Amain)
# Table of Contents

- [History](#history)
- [Considerations](#considerations)
- [Repository](#repository)
- [Modules](#modules)
- [GeneXus.Drawing.Common](#genexusdrawingcommon)
- [GeneXus.Drawing.Imaging](#genexusdrawingimaging)
- [GeneXus.Drawing.Text](#genexusdrawingtext)
- [GeneXus.Drawing.Interop](#genexusdrawinginterop)
- [How to build](#how-to-build)
- [Requirements](#requirements)
- [Instructions](#instructions)
- [License](#license)
- [Third-Party License Attributions](#third-party-license-attributions)
- [Contributing](#contributing)

## History
The creation of this library was driven by Microsoft's decision to make the `System.Drawing.Common` NuGet package as Windows-specific as of .NET 6. For further details about this annoucement, please refer to [Microsoft Learn Article: System.Drawing.Common only supported on Windows](https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).
Expand Down Expand Up @@ -182,3 +196,9 @@ The `GeneXus.Drawing` library is based on the [SkiaSharp project](https://github
> SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library (skia.org). It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
License (MIT): https://github.com/mono/SkiaSharp/blob/main/LICENSE.md
# Contributing
We welcome contributions from the community to improve this project. Please follow the guidelines outlined in the [CONTRIBUTION](CONTRIBUTION.md) file for that.
Thank you for considering to work with us! We look forward to your contributions.
1 change: 1 addition & 0 deletions src/Common/GeneXus.Drawing.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<DefineConstants>$(DefineConstants);PACKAGE_COPYRIGHT_START_YEAR</DefineConstants>
<RootNamespace>GeneXus.Drawing</RootNamespace>
<SignAssembly>True</SignAssembly>
<RepositoryUrl>https://github.com/genexuslabs/GeneXus.Drawing-DotNet</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit fa1b383

Please sign in to comment.