From 1f9e422f464ef796803806889df7a3e53889ae36 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Mon, 21 Dec 2020 20:15:58 -0500 Subject: [PATCH] Migrate to github actions --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..20ebafa6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: CI +on: push + +jobs: + build: + runs-on: ubuntu-18.04 + env: + NIKOLA_DEPLOY: python.ec + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install requirements + run: | + python3 -m pip install --upgrade pip + python3 -m pip install nox + - name: Lint and build + run: nox + - name: Deploy + if: ${{ github.ref == 'refs/heads/main' }} + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./output diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 223dc194..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -python: - - "3.6" -env: - - NIKOLA_DEPLOY=python.ec -install: - - pip install nox -script: - - nox - -deploy: - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN - local_dir: output - keep_history: true - target_branch: master - on: - branch: src