Skip to content

Commit 97ba3ef

Browse files
authored
dirty packages publish fix
1 parent 4357f8c commit 97ba3ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish-packages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Publish nuget packages
33
on:
44
release:
55
types: [created]
6+
push:
7+
branches: [ main ]
68

79
jobs:
810
build:
@@ -25,10 +27,10 @@ jobs:
2527
- name: Pack
2628
run: |
2729
mkdir artifacts
28-
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net/OgcApi.Net.csproj -p:PackageVersion=${{ github.event.release.tag_name }}
29-
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.SqlServer/OgcApi.Net.SqlServer.csproj -p:PackageVersion=${{ github.event.release.tag_name }}
30-
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.PostGis/OgcApi.Net.PostGis.csproj -p:PackageVersion=${{ github.event.release.tag_name }}
31-
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.MbTiles/OgcApi.Net.MbTiles.csproj -p:PackageVersion=${{ github.event.release.tag_name }}
30+
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net/OgcApi.Net.csproj -p:PackageVersion=1.0.1
31+
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.SqlServer/OgcApi.Net.SqlServer.csproj -p:PackageVersion=1.0.1
32+
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.PostGis/OgcApi.Net.PostGis.csproj -p:PackageVersion=1.0.1
33+
dotnet pack -c Release -o artifacts --no-restore OgcApi.Net.MbTiles/OgcApi.Net.MbTiles.csproj -p:PackageVersion=1.0.1
3234
- name: Publish
3335
run: |
3436
dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)