Skip to content

Commit

Permalink
fixes for building nuget in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rdcm committed Oct 23, 2024
1 parent e8689a8 commit 9d6b977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on:
push:
tags:
- 'v*.*.*'
- '*.*.*'

jobs:
linux-x64:
Expand Down Expand Up @@ -91,6 +91,10 @@ jobs:
name: win-x64
path: ./win-x64

- name: Extract version from tag
id: extract_tag
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build nuget
run: make build-nugets

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ build-nugets:
dotnet pack ./UdpToolkit.Network.Native/UdpToolkit.Network.Native.csproj -c Release -o ./

publish-nugets:
dotnet nuget push ./UdpToolkit.Network.Native.$PACKAGE_VERSION.nupkg --api-key $NUGET_KEY --source https://api.nuget.org/v3/index.json
dotnet nuget push ./UdpToolkit.Network.Native.$(PACKAGE_VERSION).nupkg --api-key $(NUGET_KEY) --source https://api.nuget.org/v3/index.json

0 comments on commit 9d6b977

Please sign in to comment.