forked from fuse-open/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1.09 KB
/
.travis.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
language: csharp
mono: none
dotnet: 2.1.102
script:
- dotnet run -p generator/src/generator.csproj -- . "https://fuse-open.github.io/docs/"
- |
cp -r generated _site
cp -r media _site/
cp -r assets/fonts/. _site/
cp -r assets/font-awesome-4.7.0/fonts/. _site/
cp assets/font-awesome-4.7.0/css/font-awesome.min.css _site/font-awesome.css
cp assets/bootstrap-4.0.0/css/bootstrap.min.css _site/bootstrap.css
cp assets/jquery-3.3.1/jquery-3.3.1.min.js _site/jquery.js
cp assets/popper.js-1.14.1/dist/umd/popper.min.js _site/popper.js
cp assets/bootstrap-4.0.0/js/bootstrap.min.js _site/bootstrap.js
cp assets/prism/prism.{css,js} _site/
cp assets/site.{css,js} _site/
- find _site/media -type f \( -iname "*.png" -or -iname "*.jpg" \) -exec mogrify -resize 450x450\> {} \;
- find _site/media -type f -iname "*.png" -exec pngquant {} \;
- touch _site/.nojekyll
addons:
apt:
packages:
- imagemagick
- pngquant
deploy:
provider: pages
local-dir: _site
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master