From 9ee50f772ead0c77067d8144e7b97acdf7031c51 Mon Sep 17 00:00:00 2001 From: Tornado Tech <54727692+Tornado-Technology@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:22:54 +1000 Subject: [PATCH] Added nuget workflow --- .github/workflows/nuget.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/nuget.yml diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 0000000..53b0927 --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,38 @@ +name: Nuget realease + +on: + release: + types: [published] + workflow_dispatch: + +env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: 🛠️ Setup Submodules + run: git submodule update --init --recursive + + - name: 🛠️ Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: 🛠️ Install dotnet dependencies + run: dotnet restore + + - name: 🛠️ Install dotnet tools + run: dotnet tool restore + + - name: 🛠️ Build (Release) + run: dotnet build --configuration=Release + + - name: 📦 Pack + run: dotnet pack