Skip to content

Fix build

Fix build #316

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
repository_dispatch:
types: [ build ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: 3.8.16
- name: Install
run: |
pip install -r requirements.txt
cd app/static && npm install && cd ../..
sudo npm install -g sass
- name: Update data
run: |
git submodule update --remote
- name: Build
env:
COMMENTS_REPO: ${{ secrets.COMMENTS_REPO }}
FREEZER_BASE_URL: ${{ secrets.FREEZER_BASE_URL }}
run: |
flask db init
flask freeze build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: "Adapter-Hub-Bert"
user_email: "[email protected]"
publish_dir: ./build
publish_branch: gh-pages
force_orphan: true
cname: adapterhub.ml