-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (28 loc) · 908 Bytes
/
package_push.yml
File metadata and controls
34 lines (28 loc) · 908 Bytes
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
name: Package Push Nuget
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
package-push:
name: package push
runs-on: ubuntu-latest
steps:
- name: git pull
uses: actions/checkout@v2
- name: setting dotnet version
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
10.0.x
include-prerelease: true
- name: restore
run: dotnet restore
- name: build
run: dotnet build src/Masa.Stack.Components/Masa.Stack.Components.csproj --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
- name: pack
run: dotnet pack --configuration Release --include-symbols -p:PackageVersion=0.0.$GITHUB_RUN_NUMBER
- name: package push
run: dotnet nuget push "**/*.symbols.nupkg" -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json