Skip to content

Commit 8d7826a

Browse files
chore(ci): build the documentation
1 parent daa5b59 commit 8d7826a

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

appveyor.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
# gitversion will change the version number
22
version: x-{build}
33

4-
platform: Any CPU
54
configuration: Release
6-
image: Visual Studio 2015
5+
os: Visual Studio 2015
76

87
init:
98
- git config --global core.autocrlf input
9+
- git config --global credential.helper store
10+
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:git_token):[email protected]`n"
11+
- git config --global user.email "[email protected]"
12+
- git config --global user.name "Appveyor CI"
1013

1114
cache:
1215
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
1316

1417
environment:
1518
COVERALLS_REPO_TOKEN:
1619
secure: u109t00NLIZQyREMNUyPlMd8gCi6w3o790yT8mQnzEC0LvZyevt+04u63TQfrifC
17-
# snk_secret:
18-
# secure: 5QzEIgiDqTIrZruPaIQIvTlNMl5BZ7TGEps7ALyBfHE=
20+
git_token:
21+
secure: NeX5NCOUXsCLc1UjTJjqB9F02FZ8Wq0VsxqTXC8kBdyK6zjxjebrf/9Da2sY1Kql
22+
snk_secret:
23+
secure: 5QzEIgiDqTIrZruPaIQIvTlNMl5BZ7TGEps7ALyBfHE=
1924

2025
# tools we need for bulding/testing/deploying
2126
install:
2227
- choco install gitversion.portable -pre -y
23-
- nuget install secure-file -ExcludeVersion
24-
- if defined snk_secret secure-file\tools\secure-file -decrypt src\ipfs.ci.snk.enc -secret %snk_secret% -out src\ipfs.dev.snk
28+
# - nuget install secure-file -ExcludeVersion
29+
# - if defined snk_secret secure-file\tools\secure-file -decrypt src\ipfs.ci.snk.enc -secret %snk_secret% -out src\ipfs.dev.snk
2530
- choco install ipfs
2631
- ipfs init
2732
- ps: Start-Process -FilePath "ipfs.exe" -ArgumentList "daemon"
@@ -42,14 +47,12 @@ build:
4247
verbosity: minimal
4348

4449
after_build:
45-
# Build the nuget package
46-
- echo %GitVersion_NuGetVersion%
47-
- cmd: nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
48-
- cmd: appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
4950
# Build documentation in doc\_site
50-
# docfx+appyeyor not working, see https://github.com/richardschneider/net-ipfs-core/wiki/Manual-build-of-documentation
51-
- .\tools\docfx\docfx metadata doc\docfx.json
52-
- .\tools\docfx\docfx build doc\docfx.json
51+
- tools\docfx\docfx doc\docfx.json
52+
- if defined git_token gh-pages -d doc\_site -m "new docs %GitVersion_FullSemVer%"
53+
# Build the nuget package
54+
- nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
55+
- appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
5356

5457
after_test:
5558
# Generate coverage report

0 commit comments

Comments
 (0)