Merge pull request #27 from Yukino2002/revamp #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to gh-pages | |
on: | |
push: | |
branches: [ main ] | |
repository_dispatch: | |
types: [ rebuild-website ] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build_and_deploy: | |
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 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 | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: new-website/deepchem/out | |
branch: gh-pages | |
clean-exclude: | | |
.nojekyll | |
CNAME | |
LICENSE |