-
Notifications
You must be signed in to change notification settings - Fork 155
51 lines (38 loc) · 1.58 KB
/
ci.yaml
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
41
42
43
44
45
46
47
48
49
50
51
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dotnet/[email protected]
with:
setAllVars: true
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: dotnet build
run: dotnet build BedrockFramework.sln -c Release
- name: dotnet test
run: dotnet test BedrockFramework.sln -c Release --no-build
- name: dotnet pack
run: dotnet pack BedrockFramework.sln -c Release --no-build --include-source --include-symbols
- name: setup nuget
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: NuGet/[email protected]
with:
nuget-version: latest
- name: Set API key
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: nuget setapikey ${{ secrets.FEEDZ_TOKEN }} -Config nuget.config -Source https://f.feedz.io/davidfowl/bedrockframework/nuget/index.json
- name: Set symbols API key
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: nuget setapikey ${{ secrets.FEEDZ_TOKEN }} -Config nuget.config -Source https://f.feedz.io/davidfowl/bedrockframework/symbols
- name: push packages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: dotnet nuget push **/*.nupkg -s https://f.feedz.io/davidfowl/bedrockframework/nuget/index.json -ss https://f.feedz.io/davidfowl/bedrockframework/symbols --skip-duplicate