Skip to content

Commit

Permalink
ci: add auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdayo committed May 21, 2023
1 parent 7951e9a commit 89ef4c8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish NuGet Packages

on:
push:
branches: [ main ]

jobs:
publish:
name: Publish NuGet Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x.x

- name: Publish NuGet package
id: publish
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/NekoSpace.Build.Resources.Json/NekoSpace.Build.Resources.Json.csproj
PACKAGE_NAME: NekoSpace.Build.Resources.Json
VERSION_FILE_PATH: src/NekoSpace.Build.Resources.Json/NekoSpace.Build.Resources.Json.csproj
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
TAG_COMMIT: true
TAG_FORMAT: v*
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 comments on commit 89ef4c8

Please sign in to comment.