Skip to content

Commit

Permalink
Deployment fix (#182)
Browse files Browse the repository at this point in the history
* Non-packable

* Made attributes don't compile

* Update publish.yaml

* Update Draco.Compiler.csproj

* Update Directory.Build.props
  • Loading branch information
LPeter1997 authored Jan 16, 2023
1 parent e0e68c8 commit 4c877ce
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
path: src/**/*${{ github.event.release.tag_name }}.nupkg

- name: Upload to NuGet.org
run: dotnet nuget push src/**/*${{ github.event.release.tag_name }}.nupkg --api-key ${{ env.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --no-symbols true
run: dotnet nuget push src/**/*${{ github.event.release.tag_name }}.nupkg --api-key ${{ env.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --no-symbols
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.1.0-pre</Version>
<Version>0.1.1-pre</Version>
<DracoToolsTargetFramework>net7.0</DracoToolsTargetFramework>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion src/Draco.Compiler.Cli/Draco.Compiler.Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>$(DracoToolsTargetFramework)</TargetFramework>
<LangVersion>11</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>

<!-- This needs to be false for the packaging logic in Draco.Compiler.Toolset.
We don't expect Draco.Compiler.Cli to be invoked directly. -->
Expand Down
3 changes: 2 additions & 1 deletion src/Draco.Compiler.Tasks/Draco.Compiler.Tasks.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>11</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/Draco.Compiler/Draco.Compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
</PackageReference>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />

<ProjectReference Include="..\Draco.RedGreenTree.Attributes\Draco.RedGreenTree.Attributes.csproj" />
<ProjectReference Include="..\Draco.RedGreenTree.Attributes\Draco.RedGreenTree.Attributes.csproj">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</ProjectReference>
<ProjectReference Include="..\Draco.RedGreenTree.SourceGenerator\Draco.RedGreenTree.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="False" />
</ItemGroup>

Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/GreenTreeAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class GreenTreeAttribute : Attribute
{
Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/IgnoreAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

Expand All @@ -11,6 +12,7 @@ public enum IgnoreFlags
SyntaxFactoryConstruct = 1 << 3,
}

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class)]
public sealed class IgnoreAttribute : Attribute
{
Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/RedTreeAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class RedTreeAttribute : Attribute
{
Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/SyntaxFactoryAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class SyntaxFactoryAttribute : Attribute
{
Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/TransformerBaseAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class TransformerBaseAttribute : Attribute
{
Expand Down
2 changes: 2 additions & 0 deletions src/Draco.RedGreenTree.Attributes/VisitorBaseAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;

namespace Draco.RedGreenTree.Attributes;

[Conditional("DRACO_SOURCEGENERATOR_ATTRIBUTE")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class VisitorBaseAttribute : Attribute
{
Expand Down

0 comments on commit 4c877ce

Please sign in to comment.