Skip to content

Commit 7001918

Browse files
committed
Add missing <IsPackable>true< and hack to block push when not on main
1 parent 7029b16 commit 7001918

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,26 @@ jobs:
1313
steps:
1414
- name: 🧾 Checkout code
1515
uses: actions/checkout@v4
16+
if: github.ref == 'refs/heads/main'
1617

1718
- name: 🛠 Setup .NET
1819
uses: actions/setup-dotnet@v4
20+
if: github.ref == 'refs/heads/main'
1921
with:
2022
dotnet-version: '9.x'
2123

2224
- name: 🔍 Restore dependencies
2325
run: dotnet restore
26+
if: github.ref == 'refs/heads/main'
2427

2528
# - name: 🧪 Run tests
2629
# run: dotnet test --configuration Release --no-build
30+
# if: github.ref == 'refs/heads/main'
2731

2832
- name: 📦 Pack NuGet package
2933
run: dotnet pack --configuration Release --no-build --output ./nupkg
34+
if: github.ref == 'refs/heads/main'
3035

3136
- name: 🚀 Publish to NuGet.org
3237
run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://int.nugettest.org/v3.index.json # https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
38+
if: github.ref == 'refs/heads/main'

src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<IncludeSymbols>true</IncludeSymbols>
1010
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1111
<PackageId>AStar.Dev.Functional.Extensions</PackageId>
12-
<Version>0.1.1-alpha</Version>
12+
<Version>0.1.2-alpha</Version>
1313
<Authors>Jason</Authors>
1414
<Company>AStar Development</Company>
1515
<Description>F#-inspired Result type with functional combinators, async support, and LINQ integration.</Description>
@@ -21,6 +21,7 @@
2121
<RootNamespace>AStar.Dev.Functional.Extensions</RootNamespace>
2222
<LangVersion>latest</LangVersion>
2323
<Nullable>enable</Nullable>
24+
<IsPackable>true</IsPackable>
2425
</PropertyGroup>
2526

2627
<ItemGroup>

0 commit comments

Comments
 (0)