-
-
Notifications
You must be signed in to change notification settings - Fork 56
34 lines (33 loc) · 911 Bytes
/
github-pages.yml
File metadata and controls
34 lines (33 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy github page
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
npm install --global draw.io-export
- name: Build page
run: |
xvfb-run -a drawio docs/SmartHouse.xml -o docs/SmartHouse.png
mkdocs build -v
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.4.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./site