first init

This commit is contained in:
Mingor(100757) 2024-08-27 16:50:31 +08:00
parent 91a7674ee9
commit c265d03dc5
3 changed files with 33 additions and 0 deletions

View 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
View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

6
Class1.cs Normal file
View File

@ -0,0 +1,6 @@
namespace AcmeSampleLib;
public class Class1
{
}