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]
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 IOOS --file .binder/conda-linux-64.lock
22+ source activate IOOS
23+ conda install rb-bundler compilers
24+ bundle install
25+ - name : Build documentation
26+ shell : bash -l {0}
27+ run : |
28+ source activate IOOS
29+ bundle exec jekyll build --verbose
30+
31+ - name : Deploy
32+ uses : JamesIves/github-pages-deploy-action@3.7.1
33+ if : github.ref == 'refs/heads/source' && github.repository == 'oceanhackweek/oceanhackweek.github.io'
34+ with :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ BRANCH : gh-pages
37+ FOLDER : _site
38+ CLEAN : false
You can’t perform that action at this time.
0 commit comments