-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.75 KB
/
ci-build-packages.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
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: [ 'release/**' ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-2019
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
- name: Print MSBuild, nuget version
run: |
msbuild --version
nuget ?
- name: Restore dependencies and build RELEASE package
working-directory: .
run: |
msbuild .\Injectify.sln -restore:True -t:Rebuild -p:Configuration=Release
- name: Build Nuget packages
working-directory: .\src
run: |
$version = ([xml](Get-Content .\Injectify.Autofac\Injectify.Autofac.csproj)).Project.PropertyGroup.Version
echo "Autofac version: $version"
nuget pack .\Injectify.Autofac\Injectify.Autofac.nuspec `
-Build `
-Symbols `
-Properties Configuration=Release `
-Version $version `
-OutputDirectory .\Injectify.Autofac\bin
$version = ([xml](Get-Content .\Injectify.Microsoft.DependencyInjection\Injectify.Microsoft.DependencyInjection.csproj)).Project.PropertyGroup.Version
echo "Microsoft.DependencyInjection version: $version"
nuget pack .\Injectify.Microsoft.DependencyInjection\Injectify.Microsoft.DependencyInjection.nuspec `
-Build `
-Symbols `
-Properties Configuration=Release `
-Version $version `
-OutputDirectory .\Injectify.Microsoft.DependencyInjection\bin