Skip to content

Commit

Permalink
Update nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco authored Feb 9, 2024
1 parent 7e4b5e3 commit 01bb657
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ jobs:
uses: nuget/setup-nuget@v1

- name: Nuget pack
working-directory: .
run: |
nuget restore
nuget pack ConfigurationManager\ConfigurationManager.csproj -build -properties Configuration=Release
gci -Recurse -Filter *.nuspec | foreach { nuget pack "$($_.DirectoryName)\$($_.BaseName).csproj" -build -properties Configuration=Release }
- name: Nuget push
working-directory: .
env:
NUGET_URL: https://pkgs.dev.azure.com/IllusionMods/Nuget/_packaging/IllusionMods/nuget/v3/index.json
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: |
nuget sources add -name "IllusionMods" -src ${env:NUGET_URL} -username "token" -password ${env:NUGET_TOKEN}
nuget sources update -name "IllusionMods" -username "token" -password ${env:NUGET_TOKEN}
nuget push *.nupkg -apikey key -noninteractive -skipduplicate -src ${env:NUGET_URL}

0 comments on commit 01bb657

Please sign in to comment.