ShareX/appveyor.yml

81 lines
2.2 KiB
YAML
Raw Normal View History

2016-09-22 13:20:48 +12:00
version: 1.0.0.{build}
2022-02-05 20:30:40 +13:00
image: Visual Studio 2022
2016-08-26 05:18:57 +12:00
configuration:
- Release
- Debug
- Steam
- MicrosoftStore
2016-08-26 05:18:57 +12:00
platform: Any CPU
shallow_clone: true
environment:
APIKeys:
2017-03-29 08:56:17 +13:00
secure: oWmEefxkbok87VNVsrUuXKgNaM4+j+EW6FBLsXwCbv3OVHgFvT0M9k4891OvYXDsj0oLuEn0oZeaeV8RrRDHA87ap7oCyD5FQJaiZSTHgeE=
install:
2022-10-16 08:22:57 +13:00
- ps: |
$content = Get-Content "SharedAssemblyInfo.cs"
$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)')
if ($match.Success)
{
$env:AppVersion = $match.Groups[1].Value
Update-AppveyorBuild -Version "$env:AppVersion.$env:APPVEYOR_BUILD_NUMBER"
}
else
{
$env:AppVersion = "1.0.0"
}
2016-08-26 06:24:21 +12:00
before_build:
2022-10-16 08:22:57 +13:00
- ps: |
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
{
Invoke-WebRequest "$env:APIKeys" -OutFile "ShareX.UploadersLib\APIKeys\APIKeysLocal.cs"
}
nuget restore ShareX.sln
2016-08-26 05:18:57 +12:00
build:
project: ShareX.sln
parallel: true
verbosity: minimal
after_build:
2022-10-16 08:22:57 +13:00
- ps: |
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
{
& "ShareX.Setup\bin\$env:CONFIGURATION\ShareX.Setup.exe" -AppVeyor "$env:CONFIGURATION"
}
artifacts:
- path: ShareX-*-setup.exe
name: Setup
2021-11-10 21:57:10 +13:00
- path: ShareX-*-setup.exe.sha256
name: Setup-Checksum
2021-09-06 06:21:41 +12:00
- path: ShareX-*-portable.zip
name: Portable
2021-11-10 21:57:10 +13:00
- path: ShareX-*-portable.zip.sha256
name: Portable-Checksum
2022-10-14 11:44:23 +13:00
- path: ShareX-*-Steam.zip
name: Steam
- path: ShareX-*.appx
name: MicrosoftStore
deploy:
- provider: GitHub
tag: v$(APPVEYOR_BUILD_VERSION)
release: ShareX $(APPVEYOR_BUILD_VERSION) Dev
description: "Dev build"
auth_token:
secure: bbUkNvyu1jnKkuZGlM1ois3MkmpCMlm3Lv68L9V5AYepHt1SG4ZQ15ZoKfjOFg9R
repository: ShareX/DevBuilds
artifact: Setup,Setup-Checksum,Portable,Portable-Checksum
draft: false
prerelease: false
on:
branch: develop
configuration: Release
2022-02-05 19:06:21 +13:00
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: ShareX $(AppVersion)
description: "[Changelog](https://getsharex.com/changelog)"
auth_token:
secure: bbUkNvyu1jnKkuZGlM1ois3MkmpCMlm3Lv68L9V5AYepHt1SG4ZQ15ZoKfjOFg9R
artifact: Setup,Setup-Checksum,Portable,Portable-Checksum
draft: false
prerelease: true
on:
configuration: Release
appveyor_repo_tag: true