From 20534864072ecc9b30d84e802b7daf4ed92e26db Mon Sep 17 00:00:00 2001 From: dkrsk Date: Tue, 21 Feb 2023 00:36:38 +0300 Subject: [PATCH] add gh actions for nuget --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ PastaParser/PastaParser.fsproj | 21 +++++++++++++++++++++ 2 files changed, 48 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..5fffbcc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release to 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 + working-directory: ./PastaParser + run: dotnet build -c Release + - name: Test + working-directory: ./PastaParser + run: dotnet test -c Release --no-build + - name: Pack nugets + working-directory: ./PastaParser + run: dotnet pack -c Release --no-build --output . + - name: Push to NuGet + working-directory: ./PastaParser + 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 diff --git a/PastaParser/PastaParser.fsproj b/PastaParser/PastaParser.fsproj index a408de4..a25fa51 100644 --- a/PastaParser/PastaParser.fsproj +++ b/PastaParser/PastaParser.fsproj @@ -3,12 +3,33 @@ net6.0 true + DnKR.PastaParse + CopypastaRu-parser + DnKrsk + DnKrsk + https://github.com/dkrsk/CopypastaRu-parser + README.md + https://github.com/dkrsk/CopypastaRu-parser + pasta; parser; copypastasru + LICENSE + False + + + True + \ + + + True + \ + + +