Skip to content

Commit aab8c8d

Browse files
committed
Test jekyll github pages deploy workflow
1 parent b599672 commit aab8c8d

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)