Skip to content

Commit 1313b19

Browse files
committed
Replace GitHub pages deployment with manual deployment
1 parent 170fac7 commit 1313b19

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.travis.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ before_install:
1212
script:
1313
- "exe/miq build all"
1414
deploy:
15-
provider: pages:git
16-
edge: true
17-
token: ${GITHUB_TOKEN}
18-
fqdn: www.manageiq.org
19-
local_dir: dest
20-
target_branch: master
21-
commit_message: ${TRAVIS_COMMIT_MESSAGE}
22-
verbose: true
15+
provider: script
16+
skip_cleanup: true
17+
script: deploy.sh
2318
on:
2419
branch: build
2520
notifications:

deploy.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
cd dest
4+
5+
echo "www.manageiq.org" > CNAME
6+
7+
git config --global user.name "ManageIQ Bot"
8+
git config --global user.email "[email protected]"
9+
10+
git clone --bare --branch master --depth 5 https://miq-bot:${GITHUB_TOKEN}@github.com/ManageIQ/manageiq.github.io .git
11+
git config core.bare false
12+
git add -A
13+
git commit -m "${TRAVIS_COMMIT_MESSAGE}"
14+
git push origin master

0 commit comments

Comments
 (0)