This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 4
executable file
·67 lines (58 loc) · 1.71 KB
/
pages.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy to GitHub Pages
on:
push:
branches:
- xin
jobs:
deploy-to-pages:
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: 🐍 Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: 🧳 Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
# - name: 👷 Install Dot and pandoc
# run: |
# conda install -c conda-forge pandoc
# conda install -c conda-forge ipython
# pip install sphinxcontrib-websupport
# sudo apt update
# sudo apt install -y graphviz
- name: build
run: |
pip install --upgrade pip
pip install invoke d2py
cd xinetzone
invoke init
invoke config
invoke make
cd ..
conda env update --file conda/build-environment.yaml --name base
- name: 🔧 Build HTML
run: |
cd xinetzone
invoke update
invoke doc
- name: 🚀 Deploy to GitHub pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: xinetzone/site/html
- name: 🔥 Clean up files
run: |
cd xinetzone
invoke doc.clean