From be4c599954820eb2bbfcbd97a0de11133e86609f Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 15 Oct 2024 08:26:16 -0600 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cebb2f5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: release +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" +jobs: + build: + runs-on: windows-latest + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: dotnet build --configuration Release + - name: Publish + run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: "**\\*.nupkg" + generateReleaseNotes: true