Skip to content

Commit

Permalink
Johnazariah/nuget readiness (#24)
Browse files Browse the repository at this point in the history
* Set version to 1.0.0-alpha

* Set package name
  • Loading branch information
johnazariah authored May 16, 2024
1 parent c049eb4 commit d5225ee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,29 @@ jobs:
retention-days: 7
path: ${{ env.NuGetDirectory }}/*.nupkg

validate_nuget:
runs-on: ubuntu-latest
needs: [ create_nuget ]
steps:
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v4
# validate_nuget:
# runs-on: ubuntu-latest
# needs: [ create_nuget ]
# steps:
# # Install the .NET SDK indicated in the global.json file
# - name: Setup .NET
# uses: actions/setup-dotnet@v4

# Download the NuGet package created in the previous job
- uses: actions/download-artifact@v3
with:
name: nuget
path: ${{ env.NuGetDirectory }}
# # Download the NuGet package created in the previous job
# - uses: actions/download-artifact@v3
# with:
# name: nuget
# path: ${{ env.NuGetDirectory }}

- name: Install nuget validator
run: dotnet tool update Meziantou.Framework.NuGetPackageValidation.Tool --global
# - name: Install nuget validator
# run: dotnet tool update Meziantou.Framework.NuGetPackageValidation.Tool --global

# Validate metadata and content of the NuGet package
# https://www.nuget.org/packages/Meziantou.Framework.NuGetPackageValidation.Tool#readme-body-tab
# If some rules are not applicable, you can disable them
# using the --excluded-rules or --excluded-rule-ids option
- name: Validate package
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg")
# # Validate metadata and content of the NuGet package
# # https://www.nuget.org/packages/Meziantou.Framework.NuGetPackageValidation.Tool#readme-body-tab
# # If some rules are not applicable, you can disable them
# # using the --excluded-rules or --excluded-rule-ids option
# - name: Validate package
# run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg")

run_test:
runs-on: ubuntu-latest
Expand All @@ -84,7 +84,9 @@ jobs:
# You can update this logic if you want to manage releases differently
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: [ validate_nuget, run_test ]
needs:
# - validate_nuget
- run_test
steps:
# Download the NuGet package created in the previous job
- uses: actions/download-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<PropertyGroup>
<Authors>John Azariah</Authors>
<PackageId>CSharp.UnionTypes</PackageId>
<Title>Discriminated Union DSL for C#</Title>
<Copyright>Copyright (c) 2016 John Azariah</Copyright>
<PackageProjectUrl>https://github.com/johnazariah/csharp-uniontypes</PackageProjectUrl>
</PropertyGroup>

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<!-- Generates a package at build -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageVersion>1.0.0-alpha</PackageVersion>
<Authors>John Azariah</Authors>
<PackageId>JohnAz.CSharp.UnionTypes</PackageId>
<Title>Discriminated Union DSL for C#</Title>
<Copyright>Copyright (c) 2016 John Azariah</Copyright>
<PackageProjectUrl>https://github.com/johnazariah/csharp-uniontypes</PackageProjectUrl>
<Description>Languages like F#, Scala and Haskell have special types to represent a choice of a finite set of values. These types are variously called 'Union Types', 'Sum Types' or 'Discriminated Unions (DUs)'.

Union Types are a powerful way of representing choices. They enforce value semantics and can represent choices between other Record and Union types. They are very useful constructs because they can help model the domain of a problem more precisely, and can help eliminate entire classes of runtime bugs.
Expand Down

0 comments on commit d5225ee

Please sign in to comment.