mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
+1
-1
@@ -36,7 +36,7 @@ deploy:
|
||||
- echo "web.pi-hole.io" > build/CNAME
|
||||
|
||||
# Deploy to GitHub Pages
|
||||
- git clone --depth 1 -b gh-pages https://pralor:$GITHUB_ACCESS_TOKEN@github.com/pi-hole/web.git deploy
|
||||
- git clone --depth 1 -b gh-pages https://pralor:$GITHUB_TOKEN@github.com/pi-hole/web.git deploy
|
||||
- shopt -s extglob # Enable extra globs, like !()
|
||||
- rm -rf deploy/!(.|..|.git)
|
||||
- cp -r build/* deploy/
|
||||
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 8
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
env:
|
||||
global:
|
||||
- PUBLIC_URL=/
|
||||
script:
|
||||
- npm run gulp sass
|
||||
- rm public/fakeAPI/.gitignore # Make sure that the fakeAPI data is deployed
|
||||
- 'if [ "$TRAVIS_BRANCH" = "master" ]; then
|
||||
npm run build-fake;
|
||||
echo "web.pi-hole.io" > build/CNAME;
|
||||
else
|
||||
npm run build;
|
||||
fi'
|
||||
- tar -czvf pihole-web.tar.gz -C build .
|
||||
- wget https://ftl.pi-hole.net:8080/FTL-client
|
||||
- chmod +x ./FTL-client
|
||||
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./FTL-client "${TRAVIS_BRANCH}" pihole-web.tar.gz "${TRAVIS_SECRET}"; fi'
|
||||
- rm ./FTL-client
|
||||
|
||||
deploy:
|
||||
provider: pages
|
||||
skip_cleanup: true
|
||||
local-dir: build
|
||||
github_token: $GITHUB_TOKEN
|
||||
on:
|
||||
branch: master
|
||||
Reference in New Issue
Block a user