1
0
mirror of https://github.com/opsxcq/mirror-textfiles.com.git synced 2025-03-13 14:00:56 +01:00
mirror-textfiles.com/.travis.yml
2018-12-29 14:44:42 +00:00

18 lines
418 B
YAML

language: python
script:
- cp -ar textfiles.com public
- touch public/.nojekyll
- echo 'textfiles.mirror.strm.sh' > public/CNAME
- find . -name "*.1" -exec rename 's/\.1$/\.html/' '{}' \;
- find . -name '*.html' -exec sed 's/\.1/\.html/g' -i {} +
# Deploy to GitHub pages
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: public/
on:
branch: master