-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (37 loc) · 1.04 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
37
38
language: ruby
cache: bundler
os: linux
dist: xenial
rvm:
- 2.7.3
sudo: false # route your build to the container-based infrastructure for a faster build
before_install:
- export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- sudo apt-get -q update
- sudo apt-get -y install libcurl4-openssl-dev
script:
- bundle exec jekyll build
- bundle exec htmlproofer --url-swap '^/klangturm/:/' --assume-extension ./_site
- :>_site/.nojekyll # disable jekyll processing on github pages
deploy:
# deploy main onto github pages
- provider: pages
local_dir: _site # publish static page only
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: main
# deploy main to live via Plesk git method
- provider: git_push
local_dir: _site # publish static page only
github_token: $GITHUB_TOKEN
skip_cleanup: true
commit_message: "Deploy Website to %{branch}"
base_branch: gh-pages
branch: live
cleanup: false
edge: true
on:
# all_branches: true # just for testing
branch: main