Skip to content

Commit a0ce551

Browse files
committed
Move to New MigrationTools16 AI
1 parent 91ab41d commit a0ce551

20 files changed

+832
-13
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and deploy .NET Core application to Function App MigrationToolsTelemetery
2+
on:
3+
push:
4+
branches:
5+
- topic/niggles
6+
7+
env:
8+
AZURE_FUNCTIONAPP_NAME: MigrationToolsTelemetery
9+
AZURE_FUNCTIONAPP_PACKAGE_PATH: src\MigrationTools.Telemetery\published
10+
CONFIGURATION: Release
11+
DOTNET_CORE_VERSION: 8.0.x
12+
WORKING_DIRECTORY: src\MigrationTools.Telemetery
13+
DOTNET_CORE_VERSION_INPROC: 6.0.x
14+
15+
jobs:
16+
build:
17+
runs-on: windows-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Setup .NET SDK
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
24+
- name: Setup .NET Core (for inproc extensions)
25+
uses: actions/setup-dotnet@v1
26+
with:
27+
dotnet-version: ${{ env.DOTNET_CORE_VERSION_INPROC }}
28+
- name: Restore
29+
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
30+
- name: Build
31+
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
32+
- name: Publish
33+
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}"
34+
- name: Publish Artifacts
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: functionapp
38+
path: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
39+
deploy:
40+
runs-on: windows-latest
41+
needs: build
42+
steps:
43+
- name: Download artifact from build job
44+
uses: actions/download-artifact@v3
45+
with:
46+
name: functionapp
47+
path: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
48+
- name: Deploy to Azure Function App
49+
uses: Azure/functions-action@v1
50+
with:
51+
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
52+
publish-profile: ${{ secrets.MigrationToolsTelemetery_3736 }}
53+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Function Build & Release (Azure DevOps Migration Tools)
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
push:
9+
branches: ["main"]
10+
tags-ignore: ["v*-*"]
11+
pull_request:
12+
branches: ["main"]
13+
workflow_dispatch:
14+
inputs:
15+
ForceRelease:
16+
description: 'Force a release! Use when changes hapen out of sync and `src` and `docs` folder changes are not detected.'
17+
required: false
18+
default: false
19+
type: boolean
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
defaults:
26+
run:
27+
shell: pwsh
28+
29+
jobs:
30+
31+
# Setup & Configuration

MigrationTools.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MigrationTools.Documentatio
117117
EndProject
118118
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MigrationTools.Shadows", "src\MigrationTools.Shadows\MigrationTools.Shadows.csproj", "{FA314A24-7616-498C-83F1-84D64365D00F}"
119119
EndProject
120+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MigrationTools.Telemetery", "src\MigrationTools.Telemetery\MigrationTools.Telemetery.csproj", "{5B9D24D8-8F47-4EB8-847A-9D5634CBC010}"
121+
EndProject
120122
Global
121123
GlobalSection(SolutionConfigurationPlatforms) = preSolution
122124
Debug|Any CPU = Debug|Any CPU
@@ -183,6 +185,10 @@ Global
183185
{FA314A24-7616-498C-83F1-84D64365D00F}.Debug|Any CPU.Build.0 = Debug|Any CPU
184186
{FA314A24-7616-498C-83F1-84D64365D00F}.Release|Any CPU.ActiveCfg = Release|Any CPU
185187
{FA314A24-7616-498C-83F1-84D64365D00F}.Release|Any CPU.Build.0 = Release|Any CPU
188+
{5B9D24D8-8F47-4EB8-847A-9D5634CBC010}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
189+
{5B9D24D8-8F47-4EB8-847A-9D5634CBC010}.Debug|Any CPU.Build.0 = Debug|Any CPU
190+
{5B9D24D8-8F47-4EB8-847A-9D5634CBC010}.Release|Any CPU.ActiveCfg = Release|Any CPU
191+
{5B9D24D8-8F47-4EB8-847A-9D5634CBC010}.Release|Any CPU.Build.0 = Release|Any CPU
186192
EndGlobalSection
187193
GlobalSection(SolutionProperties) = preSolution
188194
HideSolutionNode = FALSE
@@ -210,6 +216,7 @@ Global
210216
{BADF6B5C-1987-4F2D-8316-41D78CD25366} = {83F36820-E9BC-4F48-8202-5EAF9530405E}
211217
{217A2F5E-C6C7-4B1A-9E22-C7A1D00E9BED} = {83F36820-E9BC-4F48-8202-5EAF9530405E}
212218
{FA314A24-7616-498C-83F1-84D64365D00F} = {BADF6B5C-1987-4F2D-8316-41D78CD25366}
219+
{5B9D24D8-8F47-4EB8-847A-9D5634CBC010} = {83F36820-E9BC-4F48-8202-5EAF9530405E}
213220
EndGlobalSection
214221
GlobalSection(ExtensibilityGlobals) = postSolution
215222
SolutionGuid = {62EE0B27-C55A-46EE-8D17-1691DE9BBD50}

docs/Reference/Generated/MigrationTools.xml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)