-
Notifications
You must be signed in to change notification settings - Fork 261
40 lines (35 loc) · 892 Bytes
/
publish.yml
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
37
38
39
40
name: "Publish"
on:
push:
branches: [ rel-8.0.3 ]
env:
DOTNET_VERSION: "8.0.100"
jobs:
checkout:
name: "Checkout"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
pack:
name: "Pack"
runs-on: "ubuntu-latest"
steps:
- name: Install NuGet
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- name: Pack All
run: .\build-aspnetcore-publish-sln.ps1 -f
working-directory: .\build
shell: powershell
publish:
name: "Pack"
runs-on: "ubuntu-latest"
steps:
- name: Publish Package
run:
dotnet nuget push ./aspnet-core/Publish/nupkgs/LINGYUN.*.nupkg --api-key ${{ secrets.NUGETKEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate