-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (62 loc) · 1.75 KB
/
build_check_deploy_gh_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
68
69
70
71
72
73
name: Check Lint and Build, Deploy to gh-pages
on:
push:
branches: [ main ]
pull_request:
branches: [main]
repository_dispatch:
types: [ rebuild-website ]
workflow_dispatch:
permissions:
contents: write
jobs:
build_check_and_deploy_gh_pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install requirements
run: |
cd new-website
cd utils
pip install -r requirements.txt
sudo apt-get install jq
- name: fetch latest deepchem version
run: |
cd new-website
cd utils/home
python3 fetch-version.py
- name: fetch and convert model data
run: |
cd new-website
cd utils/models
python3 get_models.py
- name: fetch and convert layer data
run: |
cd new-website
cd utils/layers
python3 get_layers.py
- name: fetch and convert tutorial data
run: |
sudo apt-get install jq
cd new-website
cd utils/tutorials
python3 fetch_tutorials.py
python3 export_tutorials.py
- name: install and build
run: |
cd new-website
cd deepchem
npm i --legacy-peer-deps
npm run lint
npm run export
# Run the deploy action only if the push is to the main branch
- name: Deploy 🚀
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: new-website/deepchem/out
branch: gh-pages
clean-exclude: |
.nojekyll
CNAME
LICENSE