Skip to content

Commit 39ba7c9

Browse files
authored
Merge pull request #101 from MADE-Apps/feature/workflow-ci
Fixed CI for releases and updated sample projects to .NET 6.0
2 parents 78359d9 + 3dcd627 commit 39ba7c9

File tree

10 files changed

+29
-25
lines changed

10 files changed

+29
-25
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
name: CI
22

33
on:
4-
create:
5-
branches:
6-
- release/**
74
push:
5+
tags:
6+
- v*
87
branches:
98
- main
109
paths:
1110
- src/**
1211
- samples/**
12+
- tests/**
13+
- build/**
1314
- .github/workflows/ci.yml
1415
pull_request:
1516
branches:
1617
- main
1718
paths:
1819
- src/**
1920
- samples/**
21+
- tests/**
22+
- build/**
2023
- .github/workflows/ci.yml
2124
workflow_dispatch:
2225

@@ -40,20 +43,20 @@ jobs:
4043
echo "BUILD_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
4144
shell: pwsh
4245

46+
- name: Setup .NET 6.0
47+
uses: actions/setup-dotnet@v1
48+
with:
49+
dotnet-version: 6.0.x
50+
4351
- name: Setup NuGet
4452
uses: NuGet/setup-nuget@v1.0.5
4553

4654
- name: Restore dependencies
4755
run: nuget restore $SOLUTION
4856

49-
- name: Setup .NET
50-
uses: actions/setup-dotnet@v1
51-
with:
52-
dotnet-version: 3.1.x
53-
5457
- name: Build
5558
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG -p:Version=$BUILD_VERSION --no-restore
5659

5760
- name: Publish
58-
if: startsWith(github.ref, 'refs/heads/release')
61+
if: startsWith(github.ref, 'refs/tags/v')
5962
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}

.github/workflows/docs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,38 @@ on:
77
paths:
88
- docs/**
99
- src/**
10+
- .github/workflows/docs.yml
1011
pull_request:
1112
branches:
1213
- main
1314
paths:
1415
- docs/**
15-
- src/**
16+
- .github/workflows/docs.yml
1617
workflow_dispatch:
1718

1819
jobs:
1920
generate-docs:
20-
21+
2122
runs-on: windows-latest
2223

2324
steps:
2425
- uses: actions/checkout@v2
25-
26-
- name: Setup .NET
26+
27+
- name: Setup .NET 6.0
2728
uses: actions/setup-dotnet@v1
2829
with:
29-
dotnet-version: 3.1.x
30-
30+
dotnet-version: 6.0.x
31+
3132
- name: Setup DocFX
3233
uses: crazy-max/ghaction-chocolatey@v1
3334
with:
3435
args: install docfx
35-
36+
3637
- name: DocFX Build
3738
working-directory: docs
3839
run: docfx .\docfx.json
3940
continue-on-error: false
40-
41+
4142
- name: Publish
4243
if: github.event_name == 'push'
4344
uses: peaceiris/actions-gh-pages@v3

samples/AndroidCoreSamples/AndroidCoreSamples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/MADESampleApp/MADESampleApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/TelerikUwpSdkSample/TelerikUwpSdkSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/W3SchoolsWebTests/W3SchoolsWebTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/WebTests/WebTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/WindowsAlarmsAndClock/WindowsAlarmsAndClock.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/WindowsCommunityToolkitSampleApp/WindowsCommunityToolkitSampleApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

samples/XamlControlsGallery/XamlControlsGallery.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)