From 31431644d273ef6da052e164a62e773f24420930 Mon Sep 17 00:00:00 2001 From: avitex Date: Thu, 21 Jan 2021 00:25:44 +1100 Subject: [PATCH] move to github actions --- .github/workflows/build.yml | 17 +++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bde1d5e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - source +jobs: + build_and_deploy: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/source' + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build and deploy + uses: shalzz/zola-deploy-action@v0.12.0 + env: + PAGES_BRANCH: master + BUILD_DIR: . + TOKEN: ${{ secrets.TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 82eb4d1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -dist: bionic -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 check && zola build - -after_success: | - [ $TRAVIS_BRANCH = source ] && - [ $TRAVIS_PULL_REQUEST = false ] && - zola check && - zola build && - sudo pip install ghp-import && - ghp-import -m "build ${TRAVIS_COMMIT}" -c 1bit.pw -n public -b master && - git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master