Skip to content

Commit

Permalink
Merge pull request #3 from Rene-Sackers/azure-pipelines
Browse files Browse the repository at this point in the history
Set up CI with Azure Pipelines
  • Loading branch information
Rene-Sackers authored Jul 10, 2019
2 parents 87f574d + 593ce6a commit b4f1c41
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 27 deletions.
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ As of v0.0.3, any changes you make in the editor are also reflected to the local

Thanks to [Mathias Bynens](https://github.com/mathiasbynens) for his [Lua minifier](https://github.com/mathiasbynens/mothereff.in/tree/master/lua-minifier), couldn't have done the minification without it.

[![Build Status](https://travis-ci.com/Rene-Sackers/StormworksLuaExtract.svg?branch=master)](https://travis-ci.com/Rene-Sackers/StormworksLuaExtract)
[![Build Status](https://dev.azure.com/renesackers/StormworksLuaExtract/_apis/build/repos/git/badge?api-version=5.0-preview.2&branchName=master)](https://dev.azure.com/renesackers/StormworksLuaExtract)
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- task: DotNetCoreInstaller@0
displayName: 'Install .NET Core 3.0 (preview)'
inputs:
version: '3.0.100-preview6-012264'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish'
inputs:
command: 'publish'
publishWebProjects: false
projects: './src/StormworksLuaExtract/StormworksLuaExtract.csproj'
arguments: '-c Release'
zipAfterPublish: false
- task: CopyFiles@2
displayName: 'Copy build artifacts'
inputs:
Contents: '**/publish/StormworksLuaExtract.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: GitHubRelease@0
displayName: 'GitHub Release'
inputs:
gitHubConnection: GitHub-Connection
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'
assets: '$(Build.ArtifactStagingDirectory)/**/*.exe'
isDraft: true
7 changes: 6 additions & 1 deletion src/StormworksLuaExtract/StormworksLuaExtract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>false</PublishReadyToRun>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<LangVersion>7.3</LangVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b4f1c41

Please sign in to comment.