Skip to content

Commit 1866d1f

Browse files
authored
Merge pull request #95 from abkfenris/replace-travis
Replace travis with GitHub Actions for docs build
2 parents b599672 + 30963de commit 1866d1f

3 files changed

Lines changed: 37 additions & 54 deletions

File tree

.github/workflows/deploy-docs.yml

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

.github/workflows/jekyll-diff.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)