Skip to content

Commit

Permalink
Updated CI, added global.json, bumped dependencies to fix packaging i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
yugabe committed Sep 10, 2024
1 parent cb2d8a1 commit 0bfe37d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/cd-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
on: { push: { tags: ["v[0-9]+.[0-9]+.[0-9]+*"] } }

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
- run: |
dotnet pack ./src/EmbeddedTexts/PodNet.EmbeddedTexts.csproj -c debug
dotnet test
- run: dotnet pack -p:Version=$(echo ${{ github.ref_name }} | sed 's/^v//') -p:RepositoryCommit=${{ github.sha }}
- run: dotnet nuget push ./artifacts/package/release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
jobs: { publish: { uses: podNET-Hungary/pod-nugetizer/.github/workflows/default.yml@v1, secrets: inherit }}
1 change: 1 addition & 0 deletions PodNet.EmbeddedTexts.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".root", ".root", "{3ED2BD42
.gitignore = .gitignore
.github\workflows\cd-nuget.yml = .github\workflows\cd-nuget.yml
Directory.Build.props = Directory.Build.props
global.json = global.json
LICENSE = LICENSE
README.md = README.md
EndProjectSection
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.401",
"rollForward": "latestMajor"
}
}
10 changes: 4 additions & 6 deletions src/EmbeddedTexts/PodNet.EmbeddedTexts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>PodNet.EmbeddedTexts</PackageId>
<Description>A simple C# code generator that allows for embedding text file content into your code.</Description>
<PackageTags>EmbeddedTexts, PodNet, generator, embedded, texts, resx, resource, awesome</PackageTags>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PodNet.Analyzers.Core" Version="1.0.15" PrivateAssets="all" />
<PackageReference Include="PodNet.NuGet.Core" Version="1.1.0" PrivateAssets="all" />

<PackageReference Include="PodNet.Analyzers.Core" Version="1.0.17" PrivateAssets="all" />
<PackageReference Include="PodNet.NuGet.Core" Version="1.2.2" PrivateAssets="all" />
<Content Include="build/*" PackagePath="build" />
</ItemGroup>

</Project>
2 changes: 0 additions & 2 deletions tests/EmbeddedTexts.Tests/EmbeddedTextGeneratorTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PodNet.Analyzers.Testing.CSharp;
using PodNet.Analyzers.Testing.Diffing;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Reflection;
using Fakes = PodNet.Analyzers.Testing.CodeAnalysis.Fakes;
Expand Down

0 comments on commit 0bfe37d

Please sign in to comment.