From 676e0da22f6ff5ac5e7af04b1de9ea5812c36447 Mon Sep 17 00:00:00 2001 From: Mary Date: Mon, 19 Apr 2021 22:08:59 +0200 Subject: [PATCH] Add auto nuget publish --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1d33418 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build and Publish + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: nuget/setup-nuget@v1 + with: + nuget-api-key: ${{ secrets.NUGET_API_KEY }} + nuget-version: '5.x' + - name: "Publish on Nuget" + run: | + nuget pack Ryujinx.Graphics.Nvdec.Dependencies.nuspec -Suffix "build${{ github.run_number }}" + $file_to_publish = Get-ChildItem -Path $dir -Filter *.nupkg | Select -First 1 + echo $file_to_publish + nuget push $file_to_publish -Source https://api.nuget.org/v3/index.json