Skip to content

Samples navigation

Samples navigation #77

Workflow file for this run

name: CI-WASM
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: ./em-build.sh
- name: Uploads artifacts
uses: actions/upload-artifact@v3
with:
name: site-samples
path: build-wasm/site/
build-site:
needs: build-samples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare sources
run: |
mkdir site-src
cp -R samples/site/* site-src
- name: Download samples artifact
uses: actions/download-artifact@v3
with:
name: site-samples
path: site-src
- name: Build
uses: actions/jekyll-build-pages@v1
with:
source: site-src
destination: site
verbose: true
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: site
deploy:
needs: build-site
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2