-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (35 loc) · 1.18 KB
/
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 release
on:
push:
paths-ignore:
- 'ide-ext/**'
- 'samples/**'
- '**.js'
- '**.md'
- '**.yml'
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100-preview.5.21302.13
- name: Install dependencies
run: dotnet restore
- run: dotnet build ./lib/runtime/runtime.csproj
- run: dotnet pack ./lib/runtime/runtime.csproj
- name: Add private GitHub registry to NuGet
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/0xf6/index.json -Username 0xF6 -Password ${{ secrets.GITHUB_TOKEN }}
# problem with associate package to another repo
- name: Push generated package to GitHub registry
run: nuget push ./**/*.nupkg -Source "GPR" -SkipDuplicate
continue-on-error: true
- name: Push generated package to NuGet registry
run: nuget push ./**/*.nupkg -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate
continue-on-error: true