From 3fadb3fe3d6911535e249fe3673b3c9efe11b26c Mon Sep 17 00:00:00 2001 From: Vodes <48185123+Vodes@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:29:20 +0200 Subject: [PATCH] Remove travis workflow and add ci --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ .travis.yml | 17 ----------------- 2 files changed, 22 insertions(+), 17 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..0fcb211 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build +on: + push: + branches: + - master + - main +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Prep Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install pip deps + run: | + python -m pip install --user -r requirements.txt + - name: Build and deploy site + run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5110ac8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python - -python: 3.6.7 - -install: - - pip install -r requirements.txt - -script: - - mkdocs build --verbose --clean --strict - -deploy: - provider: pages - skip_cleanup: true - github_token: $github_token - local_dir: site - on: - branch: master