Skip to content

build

build #39

Workflow file for this run

name: build
on:
schedule:
- cron: '42 */12 * * *'
push:
branches: [ main ]
paths-ignore:
- '/sources'
- '/reference-docs'
- '/sources-static'
- '.github/workflows/*'
- '!.github/workflows/build.yml'
repository_dispatch:
types: [ build ]
workflow_dispatch:
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
- uses: actions/checkout@master
with:
# Shouldn’t be necessary, since anafero-cli fetches data from LFS,
# but…
lfs: 'true'
- name: Build
run: |
npx --node-options='--experimental-vm-modules' -y @riboseinc/[email protected] --target-dir dist --path-prefix /mn-samples-plateau-firelight-demo --current-rev main
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4