Skip to content

Commit

Permalink
更新Nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
j4587698 committed May 8, 2023
1 parent 9a9536e commit 8a55a0d
Show file tree
Hide file tree
Showing 2 changed files with 32 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 to nuget

on:
push:
tags:
- 'v*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish AListSdkSharp
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: AListSdkSharp/AListSdkSharp.csproj
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

3 changes: 3 additions & 0 deletions AListSdkSharp/AListSdkSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Title>AList .Net Sdk</Title>
<Description>AList .Net Sdk</Description>
<PackageProjectUrl>https://github.com/j4587698/AListSdkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/j4587698/AListSdkSharp</RepositoryUrl>
<Version>1.0.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8a55a0d

Please sign in to comment.