mirror of
https://github.com/yxrei/two-torial.git
synced 2025-02-17 11:28:39 +01:00
Remove travis workflow and add ci
This commit is contained in:
parent
a6b697c5ab
commit
3fadb3fe3d
22
.github/workflows/build.yml
vendored
Normal file
22
.github/workflows/build.yml
vendored
Normal file
@ -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
|
17
.travis.yml
17
.travis.yml
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user