first init
This commit is contained in:
parent
91a7674ee9
commit
c265d03dc5
18
.gitea/workflows/nuget.yaml
Normal file
18
.gitea/workflows/nuget.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
- name: Setup .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 8.x
|
||||||
|
cache: true
|
||||||
|
source-url: https://git.mworkspace.cn/api/packages/GiteaActionsSample/nuget/index.json
|
||||||
|
env:
|
||||||
|
NUGET_AUTH_TOKEN: ${{secrets.GITEA_TOKEN}}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
|
- name: Test
|
||||||
|
run: dotnet test --no-restore --verbosity normal
|
||||||
|
- name: Pack
|
||||||
|
run: dotnet pack -c Release
|
||||||
|
- name: Publish the package to Gitea
|
||||||
|
run: dotnet nuget push bin/Release/*.nupkg
|
||||||
9
AcmeSampleLib.csproj
Normal file
9
AcmeSampleLib.csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Loading…
x
Reference in New Issue
Block a user