You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/appveyor.yml

73 lines
1.9 KiB

6 years ago
version: 4.0.{build}
configuration: Release
5 years ago
os: Visual Studio 2019
6 years ago
6 years ago
environment:
5 years ago
nodejs_version: "12.13.1"
5 years ago
typescript_version: "3.0.1"
6 years ago
github_auth_token:
secure: H/7uCrjmWHGJxgN3l9fbhhdVjvvWI8VVF4ZzQqeXuJwAf+PgSNBdxv4SS+rMQ+RH
6 years ago
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
6 years ago
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
5 years ago
# - cmd: set path=%programfiles(x86)%\\Microsoft SDKs\TypeScript\3.6;%path%
# - cmd: tsc -v
6 years ago
build_script:
6 years ago
- ps: |
6 years ago
$deployBranches =
6 years ago
"feature/v4",
"develop",
6 years ago
"master";
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build') {
6 years ago
Write-Output "This is a deployment build"
6 years ago
$env:Deploy = 'true'
6 years ago
./build.ps1
6 years ago
}
6 years ago
Else
6 years ago
{
6 years ago
$env:Deploy = 'false'
6 years ago
Write-Output "This is a not a deployment build"
6 years ago
./build.ps1 --target=build
6 years ago
}
6 years ago
6 years ago
skip_commits:
files:
- '**/*.md'
6 years ago
6 years ago
after_build:
6 years ago
- ps: |
$deployBranches =
"feature/v4",
"develop",
"master";
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build')
6 years ago
{
6 years ago
Write-Output "Deploying!"
6 years ago
Get-ChildItem -Recurse .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Get-ChildItem -Recurse .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
6 years ago
}
Else
{
Write-Output "No Deployment"
}
6 years ago
#cache:
#- '%USERPROFILE%\.nuget\packages'
deploy:
- provider: GitHub
release: Ombi v$(appveyor_build_version)
auth_token:
secure: jDpp1/WUQl3uN41fNI3VeZoRZbDiDfs3GPQ1v+C5ZNE3cWdnUvuJfCCfUbYUV1Rp
draft: true
on:
branch: master