diff --git a/Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj b/Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj index a3696867955..3eef03cee8a 100644 --- a/Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj +++ b/Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj @@ -8,4 +8,9 @@ + + + + + diff --git a/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml b/Tailspin.SpaceGame.Web/Views/Home/Index.cshtml index f7c4c886074..16197a5d169 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! diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 23402e427df..fef8df5d88a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,71 @@ -pool: MyAgentPool +trigger: +- '*' + +pool: + vmImage: 'ubuntu-latest' + +variables: + buildConfiguration: 'Release' + steps: -- bash: echo hello world \ No newline at end of file +# Use .NET SDK 8.x +- task: UseDotNet@2 + displayName: 'Use .NET SDK 8.x' + inputs: + packageType: sdk + version: '8.x' + +# Install Node 16 (node-sass doesn’t support Node 18+ or 20+) +- task: NodeTool@0 + displayName: 'Use Node.js 16.x' + inputs: + versionSpec: '16.x' + +# Install Node.js dependencies +- task: Npm@1 + displayName: 'Run npm install' + inputs: + verbose: false + +# Compile SCSS to CSS +- script: './node_modules/.bin/node-sass Tailspin.SpaceGame.Web/wwwroot --output Tailspin.SpaceGame.Web/wwwroot' + displayName: 'Compile Sass assets' + +# Run gulp tasks +- task: Gulp@1 + displayName: 'Run gulp tasks' + +# Write build metadata +- script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt' + displayName: 'Write build info' + workingDirectory: Tailspin.SpaceGame.Web/wwwroot + +# Restore .NET project dependencies +- task: DotNetCoreCLI@2 + displayName: 'Restore .NET project dependencies' + inputs: + command: 'restore' + projects: '**/*.csproj' + +# Build the project +- task: DotNetCoreCLI@2 + displayName: 'Build the project - $(buildConfiguration)' + inputs: + command: 'build' + arguments: '--no-restore --configuration $(buildConfiguration)' + projects: '**/*.csproj' + +# Publish the project +- 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 + +# Publish artifact +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' + condition: succeeded()
An example site for learning
Welcome to the oficial Space Game site!