From 6ccce89abd8177b081dd1b6486ef4ab4dc0e583e Mon Sep 17 00:00:00 2001 From: JKorf Date: Sun, 5 May 2024 14:16:57 +0200 Subject: [PATCH] Github config --- .github/FUNDING.yml | 1 + .github/workflows/release.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..8fddb893 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: JKorf \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..aaf404f0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Publish Nuget + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + - name: Build + run: dotnet build -c Release + - name: Test + run: dotnet test -c Release --no-build + - name: Pack nugets + run: dotnet pack -c Release --no-build --include-symbols -p:PackageVersion=${{github.event.release.name}} --output . + - name: Push Package to NuGet + run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json \ No newline at end of file