1
0
mirror of https://github.com/avitex/avitex.github.io synced 2024-09-28 02:39:57 +00:00
1bit.pw/.travis.yml

18 lines
558 B
YAML
Raw Normal View History

2020-04-11 18:14:55 +00:00
dist: bionic
2020-04-11 17:22:25 +00:00
language: minimal
before_script:
# Download and unzip the zola executable
- curl -s -L https://github.com/getzola/zola/releases/download/v0.10.1/zola-v0.10.1-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin
script:
- zola build
after_success: |
2020-04-14 08:41:58 +00:00
[ $TRAVIS_BRANCH = source ] &&
2020-04-11 17:22:25 +00:00
[ $TRAVIS_PULL_REQUEST = false ] &&
zola build &&
sudo pip install ghp-import &&
2020-04-14 08:51:57 +00:00
ghp-import -m "build ${TRAVIS_COMMIT}" -c 1bit.pw -n public -b master &&
2020-04-11 17:22:25 +00:00
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master