From 66a82ae776763d3db94c78d45dd8306b4c627d0d Mon Sep 17 00:00:00 2001 From: Arnold Ema'a <112487276+Emaarn2230827@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:01:28 -0400 Subject: [PATCH 1/5] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 00000000000..4786113a48b --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,17 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' From 3db5d5176610611a6f1e0499788575fa01be1be6 Mon Sep 17 00:00:00 2001 From: 2230827 <2230827@VM-INFO-FIX-15> Date: Mon, 14 Oct 2024 13:47:15 -0400 Subject: [PATCH 2/5] MODIF MAIN --- azure-pipelines.yml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 23402e427df..00000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,3 +0,0 @@ -pool: MyAgentPool -steps: -- bash: echo hello world \ No newline at end of file From 3d354dee813e634dd62aa877ead371df9717b419 Mon Sep 17 00:00:00 2001 From: 2230827 <2230827@VM-INFO-FIX-15> Date: Mon, 14 Oct 2024 13:50:12 -0400 Subject: [PATCH 3/5] Add build configuration --- azure-pipelines-1.yml | 60 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 4786113a48b..220d93bf445 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -1,17 +1,59 @@ -# ASP.NET Core -# Build and test ASP.NET Core projects targeting .NET Core. -# Add steps that run tests, create a NuGet package, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core - trigger: -- main +- '*' pool: - vmImage: ubuntu-latest + vmImage: 'ubuntu-20.04' + demands: + - npm variables: buildConfiguration: 'Release' + wwwrootDir: 'Tailspin.SpaceGame.Web/wwwroot' + dotnetSdkVersion: '6.x' steps: -- script: dotnet build --configuration $(buildConfiguration) - displayName: 'dotnet build $(buildConfiguration)' +- task: UseDotNet@2 + displayName: 'Use .NET SDK $(dotnetSdkVersion)' + inputs: + version: '$(dotnetSdkVersion)' + +- task: Npm@1 + displayName: 'Run npm install' + inputs: + verbose: false + +- script: './node_modules/.bin/node-sass $(wwwrootDir) --output $(wwwrootDir)' + displayName: 'Compile Sass assets' + +- task: gulp@1 + displayName: 'Run gulp tasks' + +- script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt' + displayName: 'Write build info' + workingDirectory: $(wwwrootDir) + +- task: DotNetCoreCLI@2 + displayName: 'Restore project dependencies' + inputs: + command: 'restore' + projects: '**/*.csproj' + +- task: DotNetCoreCLI@2 + displayName: 'Build the project - $(buildConfiguration)' + inputs: + command: 'build' + arguments: '--no-restore --configuration $(buildConfiguration)' + projects: '**/*.csproj' + +- task: DotNetCoreCLI@2 + displayName: 'Publish the project - $(buildConfiguration)' + inputs: + command: 'publish' + projects: '**/*.csproj' + publishWebProjects: false + arguments: '--no-build --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)/$(buildConfiguration)' + zipAfterPublish: true + +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' + condition: succeeded() \ No newline at end of file From 488460fcb69727a24ed101553ee16401074f4d3c Mon Sep 17 00:00:00 2001 From: 2230827 <2230827@VM-INFO-FIX-15> Date: Mon, 14 Oct 2024 13:53:44 -0400 Subject: [PATCH 4/5] Add build configuration --- azure-pipelines-1.yml => azure-pipelines.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename azure-pipelines-1.yml => azure-pipelines.yml (100%) diff --git a/azure-pipelines-1.yml b/azure-pipelines.yml similarity index 100% rename from azure-pipelines-1.yml rename to azure-pipelines.yml From c8a737a0d011bdd47407a6c847d7b1b613bc3641 Mon Sep 17 00:00:00 2001 From: 2230827 <2230827@VM-INFO-FIX-15> Date: Mon, 14 Oct 2024 15:14:08 -0400 Subject: [PATCH 5/5] Improve the text at the top of the home page --- Tailspin.SpaceGame.Web/Views/Home/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml b/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml index f7c4c886074..e3faca497d9 100644 --- a/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml +++ b/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml @@ -5,7 +5,7 @@ - An example site for learning + Welcome to the oficial Space Game site!
An example site for learning
Welcome to the oficial Space Game site!