-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
75 lines (63 loc) · 2.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# version format
version: uwx-nightly-{build}
# Build worker image (VM template)
image: Visual Studio 2019
clone_folder: c:\projects\dsp
clone_script:
- cmd: git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/uwx/HSNXT.DSharpPlus.git %APPVEYOR_BUILD_FOLDER%
- cmd: git clone -q --recursive --branch=gh-pages https://github.com/uwx/HSNXT.DSharpPlus.git %APPVEYOR_BUILD_FOLDER%/../gh-pages
- cmd: git clone -q --recursive https://github.com/DSharpPlus/DSharpPlus.git %APPVEYOR_BUILD_FOLDER%/../DSharpPlus
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
branches:
only:
- master
environment:
access_token:
secure: qNMRA5boyCslJ9JgiqjpLdHd0NvhQVWcjJx3ZMrcgrDz6DNFJnDsV7w9IZuhqwYZ
VersionSuffix: nightly
BuildNumber: 00001
before_build:
- cmd: dotnet restore -s https://api.nuget.org/v3/index.json -s https://nuget.emzi0767.com/api/v3/index.json
build: off
build_script:
- cmd: dotnet build "HSNXT.DSharpPlus.sln" -c Release
- cmd: dotnet pack "HSNXT.DSharpPlus.sln" -c Release -o "Packaged" --no-build --include-symbols
artifacts:
- path: '**\Packaged\HSNXT.*.nupkg'
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: false
project_feed: false
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to account/project feeds for pull request builds
deploy:
- provider: NuGet
skip_symbols: false
api_key:
secure: JLjMYOq3qi+ufhrG7RW0ruPttMFub/anRnFHckBxMO5GvL3W0CVYd2CZpR4zQVqj
after_deploy:
# setup auth
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "Appveyor Automated Build"
# build and copy docfx
- cinst docfx
- docfx ./docfx_project/docfx.json
- try robocopy docfx_project\_site %APPVEYOR_BUILD_FOLDER%/../gh-pages/docfx *.* /is /it /e /nfl /ndl /np
# build and copy doxygen
- ps: Invoke-WebRequest https://static.emzi0767.com/misc/doxygen-1.8.15.windows.x64.bin.zip -OutFile doxygen.zip
- ps: Expand-Archive -Path doxygen.zip -DestinationPath C:\doxygen_build
- cmd: set PATH=%PATH%;C:\doxygen_build
- doxygen Doxyfile
- try robocopy doxygen_out %APPVEYOR_BUILD_FOLDER%/../gh-pages/doxygen *.* /is /it /e /nfl /ndl /np
# add and commit
- cd %APPVEYOR_BUILD_FOLDER%/../gh-pages
- git add .
- '%APPVEYOR_BUILD_FOLDER%\try git commit -m "Generated docs [skip ci]" --quiet'
- git push origin gh-pages
notifications:
- provider: Slack
on_build_success: true
on_build_failure: true
incoming_webhook:
secure: +5y63VhkKwOZVK264xwgH8gp7vI2cJivXvseQeSoYYNyH3wjOtid8Qz+gyNOjCGpI/xqxxJNwqFrL75ZPHYOYEKs9WhBWznTsFpJUAs5hxn1kcczMv6WYuwUzXJNEdqX6m47PnS7xrzUZJIRWNQCHRJCtN5VX+hXfVV6BT+tKQdRDeRr/LANhRLr2pAbIOGP