-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
49 lines (40 loc) · 1.85 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image: Visual Studio 2022
version: 2.0.{build}
configuration: Release
skip_commits:
files:
- 'Images/*'
- 'README.md'
init:
- if "%APPVEYOR_REPO_NAME%" == "JeremyAnsel/JeremyAnsel.DirectX-Samples" if "%APPVEYOR_REPO_BRANCH%"=="master" if not defined APPVEYOR_PULL_REQUEST_NUMBER set DEPLOY=True
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
environment:
GITHUB_TOKEN:
secure: awbDbCVBldNyz+7VzGnSLlBnczS0NtXrUaS7UkrwoOoUIAzE70QHYfKQuTyOJavb
nuget:
disable_publish_on_pr: true
before_build:
- nuget update -self
- for /R %%F in (*.sln) do nuget restore "%%F" -Verbosity quiet
build_script:
- echo /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" >> msbuild.rsp
- for /R %%F in (*.sln) do msbuild /verbosity:minimal "%%F"
after_build:
- DirectXRenderTargetScreenshot\DirectXRenderTargetScreenshot\bin\Release\net8.0-windows\DirectXRenderTargetScreenshot.exe
- build-dist.cmd
- if not defined APPVEYOR_PULL_REQUEST_NUMBER 7z a -t7z bld\JeremyAnsel.DirectX-Samples-%APPVEYOR_BUILD_VERSION%.7z .\bld\dist\* > nul
- if not defined APPVEYOR_PULL_REQUEST_NUMBER appveyor PushArtifact bld\JeremyAnsel.DirectX-Samples-%APPVEYOR_BUILD_VERSION%.7z
after_test:
- if "%DEPLOY%" == "True" git checkout -q master
- if "%DEPLOY%" == "True" git config core.safecrlf false
- if "%DEPLOY%" == "True" git config push.default simple
- if "%DEPLOY%" == "True" git config user.name \"Jérémy Ansel\""
- if "%DEPLOY%" == "True" git config user.email [email protected]
- if "%DEPLOY%" == "True" git add -v --all Images
- if "%DEPLOY%" == "True" git add -v README.md
- if "%DEPLOY%" == "True" git commit -m "Update screenshots generated by CI" || true
- if "%DEPLOY%" == "True" git branch
- if "%DEPLOY%" == "True" git push -q https://%GITHUB_TOKEN%@github.com/JeremyAnsel/JeremyAnsel.DirectX-Samples.git