Skip to content

Commit

Permalink
add Action permits
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Dec 16, 2024
1 parent 0536c8f commit 1e01dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
packages: write
contents: write

environment:
Expand All @@ -134,7 +135,7 @@ jobs:
dotnet-quality: "ga"

- name: Setup NuGet
uses: nuget/setup-nuget@v1
uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_TOKEN }}
nuget-version: '6.x'
Expand All @@ -148,7 +149,6 @@ jobs:
- name: Publish to GitHub Packages (staging)
if: inputs.environment == 'staging'
run: |
dotnet nuget add source --username DaveSkender --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/DaveSkender/index.json"
dotnet nuget push NuGet/*.nupkg --source "https://nuget.pkg.github.com/DaveSkender/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NuGet.org
Expand Down

0 comments on commit 1e01dc6

Please sign in to comment.