Skip to content

Commit cf5277d

Browse files
authored
Fix website build (#808)
* Fix website build * Deployment for all branches
1 parent 30821dd commit cf5277d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ install:
1818
- git clone --depth 1 https://github.com/api-platform/website.git
1919
- cd website
2020
- yarn install --silent
21-
- ln -s $TRAVIS_BUILD_DIR src/pages/docs
2221
- cd $TRAVIS_BUILD_DIR
2322

2423
script:
2524
- find . -name '*.md' -exec proselint {} \;
2625
- cd ../website
26+
- bin/checkout-documentation
2727
- bin/generate-nav
2828
- GATSBY_BRANCH_NAME=$TRAVIS_BRANCH yarn gatsby build
2929
# Preserve artifacts
@@ -37,4 +37,5 @@ deploy:
3737
local_dir: public
3838
fqdn: api-platform.com
3939
on:
40-
branch: 2.4
40+
all_branches: true
41+
condition: $TRAVIS_BRANCH =~ "^master|2.4|2.3|2.2|2.1$"

0 commit comments

Comments
 (0)