Merge pull request #358 from kobotoolbox/revert-355-project-level-con… #244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |