From ffec0cc4a11cf5ace4706c333e7e1bbfba8bb971 Mon Sep 17 00:00:00 2001 From: theKBro Date: Wed, 31 Jul 2024 19:49:08 +0200 Subject: [PATCH] fix permissions --- .github/workflows/deploy.yml | 13 ++++++++----- nuget.config | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eee491e..24cdec4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,20 +6,23 @@ on: jobs: build: + runs-on: windows-latest + permissions: + packages: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: | - 8.0.x + dotnet-version: '8.0.x' config-file: nuget.config + source-url: https://nuget.pkg.github.com/theKBro/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Build with dotnet run: dotnet build -c Release - name: Push generated package to GitHub registry - run: dotnet nuget push \ No newline at end of file + run: dotnet nuget push dummyDependency\bin\Release\*.nupkg \ No newline at end of file diff --git a/nuget.config b/nuget.config index 638a820..1fa1683 100644 --- a/nuget.config +++ b/nuget.config @@ -1,6 +1,6 @@ - + \ No newline at end of file