File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Deploy docs
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build-docs :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v2
11+
12+ - name : Setup Conda
13+ uses : s-weigand/setup-conda@v1
14+ with :
15+ activate-conda : false
16+ conda-channels : conda-forge
17+
18+ - name : Build environment
19+ shell : bash -l {0}
20+ run : |
21+ conda create --name OHW-site -c conda-forge rb-bundler compilers
22+ source activate OHW-site
23+ bundle install
24+ - name : Build documentation
25+ shell : bash -l {0}
26+ run : |
27+ source activate OHW-site
28+ bundle exec jekyll build --verbose
29+
30+ - name : Deploy
31+ uses : JamesIves/github-pages-deploy-action@3.7.1
32+ if : github.ref == 'refs/heads/source' && github.repository == 'oceanhackweek/oceanhackweek.github.io'
33+ with :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ BRANCH : master
36+ FOLDER : _site
37+ CLEAN : false
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments