Skip to content

Commit

Permalink
update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jazous committed Jul 31, 2022
1 parent aee3489 commit 652cd3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ jobs:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/willzou/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GPDT_TOKEN}}
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: 2.Build SDKs.DjiImage
run: dotnet build SDKs.DjiImage --configuration Release
- name: 3.Create nuget package
run: dotnet pack SDKs.DjiImage --configuration Release --no-build
# 4.Authenticates packages to push to nuget.org.
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/willzou/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: 4.Publish the package to nuget.org
run: dotnet nuget push */bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols

0 comments on commit 652cd3c

Please sign in to comment.