ArchiSteamFarm/appveyor.yml

66 lines
3.5 KiB
YAML
Raw Normal View History

2017-02-23 17:50:57 +00:00
version: '{build}-{branch}'
2017-02-12 14:15:20 +00:00
pull_requests:
do_not_increment_build_number: true
2017-02-20 14:37:38 +00:00
branches:
only:
- master
2017-01-16 02:03:19 +00:00
skip_branch_with_pr: true
2017-06-27 16:42:01 +00:00
image: Visual Studio 2017 Preview
2016-04-20 23:09:52 +00:00
configuration: Release
platform: Any CPU
clone_depth: 10
2017-06-30 01:54:48 +00:00
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
2017-06-27 16:36:40 +00:00
before_build:
2017-06-30 04:18:03 +00:00
- ps: dotnet restore
2016-04-20 23:09:52 +00:00
build:
project: ArchiSteamFarm.sln
parallel: true
verbosity: minimal
2017-06-30 02:07:28 +00:00
after_build:
2017-06-30 04:18:03 +00:00
- ps: >-
2017-06-30 05:54:18 +00:00
$ErrorActionPreference = 'Stop'
2017-06-30 02:07:28 +00:00
2017-06-30 05:54:18 +00:00
$RUNTIMES = 'generic', 'win-x64', 'linux-x64', 'osx-x64'
2017-06-30 02:43:39 +00:00
2017-06-30 05:54:18 +00:00
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
$ZIP_ARGS = '-mx=9', '-md=27', '-mfb=273', '-mmc=1000000000'
2017-06-30 04:18:03 +00:00
} else {
2017-06-30 05:54:18 +00:00
$ZIP_ARGS = '-mx=1'
2017-06-30 04:18:03 +00:00
}
2017-06-30 02:43:39 +00:00
2017-06-30 04:18:03 +00:00
foreach ($RUNTIME in $RUNTIMES) {
2017-06-30 05:54:18 +00:00
if ($RUNTIME -eq 'generic') {
dotnet publish -c "$env:CONFIGURATION" -o "out\$RUNTIME"
} else {
dotnet publish -c "$env:CONFIGURATION" -r "$RUNTIME" -o "out\$RUNTIME"
}
2017-06-30 04:56:18 +00:00
7z a -bd -tzip -mm=LZMA $ZIP_ARGS "ArchiSteamFarm\out\ASF-$RUNTIME.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$RUNTIME\*"
2017-06-30 05:54:18 +00:00
Push-AppveyorArtifact "ArchiSteamFarm\out\ASF-$RUNTIME.zip" -FileName "ASF-$RUNTIME.zip" -DeploymentName "ASF-$RUNTIME.zip"
2017-06-30 04:18:03 +00:00
}
2017-06-30 01:54:48 +00:00
deploy:
- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: ArchiSteamFarm V$(appveyor_repo_tag_name)
description: '**NOTICE:** Pre-releases are experimental versions that often contain unpatched bugs, work-in-progress features or rewritten implementations. If you don''t consider yourself advanced user, please download **[latest stable release](https://github.com/JustArchi/ArchiSteamFarm/releases/latest)** instead. Pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given. Check out ASF **[release cycle](https://github.com/JustArchi/ArchiSteamFarm/wiki/Release-cycle)** if you''d like to learn more.\n\n---\n\nThis is automated AppVeyor GitHub deployment, human-readable changelog should be available soon. In the meantime please refer to **[GitHub commits](https://github.com/JustArchi/ArchiSteamFarm/commits/$(appveyor_repo_tag_name))**.\n\n---\n\nASF is available for free. If you''re grateful for what we''re doing, please consider donating. Developing ASF requires massive amount of time and knowledge, especially when it comes to Steam (and its problems). Even 1$ is highly appreciated and shows that you care!\n\n [![Patreon support](https://img.shields.io/badge/Patreon-support-yellow.svg)](https://www.patreon.com/JustArchi) [![Paypal.me donate](https://img.shields.io/badge/Paypal.me-donate-yellow.svg)](https://www.paypal.me/JustArchi/1usd) [![Paypal donate](https://img.shields.io/badge/Paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HD2P2P3WGS5Y4) [![Bitcoin donate](https://img.shields.io/badge/Bitcoin-donate-yellow.svg)](https://blockchain.info/payment_request?address=1Archi6M1r5b41Rvn1SY2FfJAzsrEUT7aT) [![Steam donate](https://img.shields.io/badge/Steam-donate-yellow.svg)](https://steamcommunity.com/tradeoffer/new/?partner=46697991&token=0ix2Ruv_)'
auth_token:
secure: QC5gIDMvSpd43EG6qW8d1E3ZHiVU4aR7pbKQonXstjj/JtAABf5S1IbtoY4OsnOR
artifact: /.*/
draft: true
prerelease: true
force_update: false
on:
branch: master
configuration: Release
appveyor_repo_tag: true
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/6982e3cd9dc9e57b1119
method: POST
on_build_success: true
on_build_failure: true
on_build_status_changed: true