This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
/
appveyor.yml
51 lines (50 loc) · 1.81 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
version: '1.0.{build}'
image:
- Visual Studio 2019
- Ubuntu
build:
project: Unosquare.RaspberryIO.sln
verbosity: quiet
configuration: Release
platform: Any CPU
notifications:
- provider: Slack
auth_token:
secure: Q+xg4/yU5OR9BVF14cw4yZ+3qlhMeYDsAhUQyOIszmF1mHvq44tIvQpWByBJCd/cgUIZk3SwBpk4hh1MrkQIk6rnaOZ2LNBTev4zrq36oXk=
channel: '#builds'
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
COVERALLS_REPO_TOKEN:
secure: dVpAqavd3jP7LMW+oswLBPfihwiGDZUtWDQWJadMO1Gj61SYegxNsGTZOT2BYN6+
op_build_user: "Geo Perez"
op_build_user_email: "geovanni.perez@gmail.com"
access_token:
secure: HzWdswNyfQbQ0vLk9IQyO+Ei9mxoPYp9rvv6HPhtC9J/Fm7EHRzyV953pbPRXI9I
before_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $isWindows)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
cinst docfx -y
}
- dotnet restore -v Minimal
after_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $isWindows)
{
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git config --global core.autocrlf false
git config --global user.email $env:op_build_user_email
git config --global user.name $env:op_build_user
git clone https://github.com/unosquare/raspberryio.git -b gh-pages origin_site -q
git clone -b documentation https://github.com/unosquare/best-practices.git -q
docfx docfx.json --logLevel Error
Copy-Item origin_site/.git _site -recurse
CD _site
Copy-Item README.html index.html -force
git add -A 2>&1
git commit -m "Documentation update" -q
git push origin gh-pages -q
CD ..
}