Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
theKBro committed Jul 31, 2024
1 parent e467fba commit ffec0cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: dotnet nuget push dummyDependency\bin\Release\*.nupkg
2 changes: 1 addition & 1 deletion nuget.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="defaultPushSource" value="https://nuget.pkg.github.com/theKBro/index.json" />
<add key="defaultPushSource" value="https://nuget.pkg.github.com/theKBro/index.json" />
</config>
</configuration>

0 comments on commit ffec0cc

Please sign in to comment.