-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (43 loc) · 1.66 KB
/
deploy.yml
File metadata and controls
47 lines (43 loc) · 1.66 KB
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
name: Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
CONDA_PREFIX: /usr/share/miniconda/
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
environment-file: .github/ci_support/environment.yml
auto-activate-base: false
- name: Install Jupyterbook
shell: bash -l {0}
run: |
echo "- file: README.md" > _toc.yml
echo "- file: 0_opening_notebook.ipynb" >> _toc.yml
echo "- file: 1_1_intro_pyiron_building_blocks/1_1_intro.ipynb" >> _toc.yml
echo "- file: 1_2_import_proj/1_2_import_project.ipynb" >> _toc.yml
echo "- file: 2_customized_job/2_0_custom_python_job.ipynb" >> _toc.yml
echo "- file: 2_customized_job/2_1_custom_bash_job.ipynb" >> _toc.yml
echo "- file: 3_lammps_damask_workflow/3_lammps-damask-workflow.ipynb" >> _toc.yml
echo "- file: 4_data_mining/4_data_mining.ipynb" >> _toc.yml
cat _toc.yml
curl https://pyiron.org/images/logo_dark.png --output logo_dark.png
bash .github/ci_support/write_book_config.sh
rm CODE_OF_CONDUCT.md LICENSE
rm -r Exercises
jupyter-book build . --path-output public
- run: mv public/_build/html public_html
- run: touch public_html/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public_html # The folder the action should deploy.
CLEAN: true