-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (39 loc) · 1.24 KB
/
prod.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow builds live website on master commits.
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Install FE dependencies
run: npm install
- name: Build styles
run: npm start
- name: Create virtual environment
run: python3 -m venv koboenv
- name: Activate virtual environment
run: source koboenv/bin/activate
- name: Install requirements
run: pip install -r requirements.txt
- name: Build public files
run: make html
- name: Disable Jekyll
run: touch _build/html/.nojekyll
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
publish_branch: gh-pages
cname: support.kobotoolbox.org