Fix legal page for es, remove duplicate in static folder. #270
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
name: Build | |
on: [push] | |
jobs: | |
HUGO_BUILD: | |
name: Build website with Hugo | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '20' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.122.0' | |
- name: Install jsonschema | |
run: | | |
python -m pip install --upgrade pip | |
pip install jsonschema | |
- name: Install JS dependencies | |
working-directory: ./themes/coopcycle | |
run: | | |
export NODE_OPTIONS=--openssl-legacy-provider | |
npm ci | |
npm run build | |
npm prune | |
- name: Build | |
run: hugo | |
- name: Validate JSON schema | |
run: jsonschema --instance public/coopcycle.json coopcycle.schema |