Skip to content

Commit c1be6fa

Browse files
ci: move build process from travis to github actions (#21)
Co-authored-by: Max Schmitt <[email protected]>
1 parent 7726b63 commit c1be6fa

File tree

3 files changed

+31
-13
lines changed

3 files changed

+31
-13
lines changed

.github/workflows/deployment.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: MKDocs
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install mkdocs mkdocs-material pygments pymdown-extensions
20+
- name: Build mkdocs
21+
run: |
22+
mkdocs build --verbose -d build
23+
- name: Deploy on Github Pages
24+
uses: JamesIves/github-pages-deploy-action@releases/v3
25+
if: github.ref == 'refs/heads/master'
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages
29+
FOLDER: build

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
site
2-
.vscode
2+
.vscode
3+
/build

.travis.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)