-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (29 loc) · 980 Bytes
/
dotnet.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
41
42
43
name: .NET
on:
workflow_dispatch:
env:
PROJECT_PATH: 'kiki/kiki.csproj'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -o out
- name: 'Get version'
id: kikiversion
uses: battila7/get-version-action@v2
- name: "create package"
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build -c Release --include-symbols -p:PackageVersion=${{ '0.1.6' }} -o out
- name: Test
run: dotnet test --no-build --verbosity normal
- name: 'Package push'
run: |
cd out
dotnet push *.nupkg -k ${{ secrets.GUITHUB_TOKEN }} -s "https://nuget.pkg.github.com/xuxunguinho/index.json" --skip-duplicate