-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (31 loc) · 956 Bytes
/
deploy-docs.yml
File metadata and controls
37 lines (31 loc) · 956 Bytes
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
name: Build and Deploy docs
on: [push, pull_request]
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: false
conda-channels: conda-forge
- name: Build environment
shell: bash -l {0}
run: |
conda create --name build-site -c conda-forge rb-bundler compilers
source activate build-site
bundle install
- name: Build documentation
shell: bash -l {0}
run: |
source activate build-site
bundle exec jekyll build --verbose
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
if: github.ref == 'refs/heads/source' && github.repository == 'ICESAT-2HackWeek/icesat-2hackweek.github.io'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: master
FOLDER: _site
CLEAN: false