From 7f4bdba1613a81ad15263b440afdc30ffda3c172 Mon Sep 17 00:00:00 2001 From: Creeper Lv Date: Wed, 27 Aug 2025 02:20:36 +1000 Subject: [PATCH] Working on the workflow. --- .github/workflows/dotnet.yml | 28 ++++++++++++++++++++++++++++ src/Directory.Build.props | 7 +++++++ src/SVM.Core/LICENSE.txt | 21 +++++++++++++++++++++ src/SVM.Core/README.md | 1 + src/SVM.Core/SVM.Core.csproj | 17 +++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 .github/workflows/dotnet.yml create mode 100644 src/Directory.Build.props create mode 100644 src/SVM.Core/LICENSE.txt create mode 100644 src/SVM.Core/README.md diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..e1bf79c --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + release: + types: [published] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 9.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build -c:Release --no-restore + - name: Pack + run: dotnet pack -c:Release ./src/SVM.Core/SVM.Core.csproj + - name: Publish to NuGet + run: dotnet nuget push **\*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.NUGET_API}} diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 0000000..a03e7d7 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,7 @@ + + + 0.1.0 + false + false + + diff --git a/src/SVM.Core/LICENSE.txt b/src/SVM.Core/LICENSE.txt new file mode 100644 index 0000000..8aa2645 --- /dev/null +++ b/src/SVM.Core/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) [year] [fullname] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/SVM.Core/README.md b/src/SVM.Core/README.md new file mode 100644 index 0000000..7d8b712 --- /dev/null +++ b/src/SVM.Core/README.md @@ -0,0 +1 @@ +# SVM \ No newline at end of file diff --git a/src/SVM.Core/SVM.Core.csproj b/src/SVM.Core/SVM.Core.csproj index 1de3a88..75c9e11 100644 --- a/src/SVM.Core/SVM.Core.csproj +++ b/src/SVM.Core/SVM.Core.csproj @@ -5,6 +5,23 @@ enable true 9.0 + LICENSE.txt + README.md + A Simple Virtual Machine. + Copyright (C) 2025 Creeper Lv + https://github.com/creeperlv/SVM + Simple Virtual Machine + + + True + \ + + + True + \ + + +