-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (29 loc) · 1.01 KB
/
Copy pathnuget.yml
File metadata and controls
36 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Push to nuget feed on release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Pack NuGet packages
run: |
Get-ChildItem -Recurse -Filter *.csproj | Where-Object { $_.FullName -notmatch 'Unity_project' } | ForEach-Object {
dotnet pack $_.FullName -c Release
}
- name: Push NuGet packages
env:
NUGET_URL: https://pkgs.dev.azure.com/IllusionMods/Nuget/_packaging/IllusionMods/nuget/v3/index.json
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: |
dotnet nuget update source IllusionMods --username "token" --password $env:NUGET_TOKEN --store-password-in-clear-text
dotnet nuget push **/*.nupkg --source IllusionMods --api-key $env:NUGET_TOKEN --skip-duplicate