mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
90 lines
2.5 KiB
YAML
90 lines
2.5 KiB
YAML
version: 1.77.{build}
|
|
pull_requests:
|
|
do_not_increment_build_number: true
|
|
skip_tags: true
|
|
branches:
|
|
except:
|
|
- /dependabot/
|
|
image: Visual Studio 2026
|
|
configuration: Release
|
|
platform: x64
|
|
init:
|
|
- cmd: >-
|
|
for /f "tokens=1,2,3 delims=." %%a in ("%APPVEYOR_BUILD_VERSION%") do set TRUE_VERSION=%%a.%%b& set TRUE_BUILD=%%c
|
|
|
|
for /f %%a in ('powershell -Command "Get-Date -format yyyyMMddHHmmss"') do set BUILD_DATETIME=%%a
|
|
|
|
set COMMIT_ID=%APPVEYOR_REPO_COMMIT:~0,7%
|
|
|
|
set REVISED_VERSION=%TRUE_VERSION%.%TRUE_BUILD%.%BUILD_DATETIME%-%APPVEYOR_REPO_BRANCH%-%COMMIT_ID%
|
|
|
|
REM appveyor UpdateBuild -Version "%REVISED_VERSION%"
|
|
|
|
REM set APPVEYOR_BUILD_VERSION=%REVISED_VERSION%
|
|
- ps: Start-Service MySQL80
|
|
dotnet_csproj:
|
|
patch: true
|
|
file: '**\*.csproj'
|
|
version: '{version}'
|
|
version_prefix: '{version}'
|
|
package_version: '{version}'
|
|
assembly_version: '{version}'
|
|
file_version: '{version}'
|
|
informational_version: '{version}'
|
|
environment:
|
|
DOCKER_USER:
|
|
secure: qs6SGmd8XeCqWCMGx5+VAg==
|
|
DOCKER_PASS:
|
|
secure: AdN3f5EVMXteNIDrqS8FhSezFUuiZ7F4LU0woD5raBE=
|
|
GIT_A:
|
|
secure: juAGPTUbTXbVFEoEnhGOSc0WOaxbvKKNha5dKPB1P/I=
|
|
GIT_B:
|
|
secure: bhR4cIOcVqIBZXFOBVTtvQ==
|
|
APPVEYOR_RDP_PASSWORD:
|
|
secure: huM6kANmgP1OdlmHulXVZA==
|
|
access_token:
|
|
secure: lGLpqex+Weod6ZiPw34RwTv999QvoSZ+imTcmYhiJWQL6XkfkVUYcqOO6pJDuAYt
|
|
services:
|
|
- mysql
|
|
#install:
|
|
# - ps: AppVeyor\AppVeyorInstall.ps1
|
|
before_build:
|
|
- cmd: AppVeyor\AppVeyorBeforeCompile.bat
|
|
build:
|
|
project: Source\ACE.sln
|
|
verbosity: minimal
|
|
#build_script:
|
|
#- cmd: AppVeyor\AppVeyorBuild.bat
|
|
after_build:
|
|
- cmd: AppVeyor\AppVeyorAfterCompile.bat
|
|
before_package:
|
|
- cmd: AppVeyor\AppVeyorBeforePackage.bat
|
|
test_script:
|
|
- cmd: AppVeyor\AppVeyorTestScript.bat
|
|
artifacts:
|
|
- path: '**\ACETests*.txt'
|
|
name: test logs
|
|
- path: '**\ACE.Server-*.zip'
|
|
name: release candidate
|
|
- path: '**\ACE.Server.zip'
|
|
name: release candidate (direct link)
|
|
before_deploy:
|
|
- ps: >-
|
|
git config --global credential.helper store
|
|
|
|
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
|
|
deploy:
|
|
- provider: GitHub
|
|
tag: v$(appveyor_build_version)
|
|
release: ACEmulator Server - v$(appveyor_build_version)
|
|
description: <blockquote><h1><h6>automated server build - $(APPVEYOR_REPO_COMMIT_TIMESTAMP)</blockquote>
|
|
auth_token:
|
|
secure: lGLpqex+Weod6ZiPw34RwTv999QvoSZ+imTcmYhiJWQL6XkfkVUYcqOO6pJDuAYt
|
|
artifact: /.*\.zip/
|
|
draft: true
|
|
prerelease: false
|
|
force_update: true
|
|
on:
|
|
branch: master
|
|
after_deploy:
|
|
- cmd: AppVeyor\AppVeyorAfterDeploy.bat
|