Skip to content

build-pages

build-pages #2

Workflow file for this run

name: build-pages
on:
workflow_dispatch:
inputs:
wasmreleasetag:
description: 'wasm_release_tag'
required: true
jobs:
build-pages:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- run: npm install && npm run build
- run: |
mkdir pages
cd $GITHUB_WORKSPACE/pages
mkdir -p example
cp ../example/* example/
mkdir -p build/wasm/
cd build/wasm/
wget https://github.com/busytex/busytex/releases/download/${{ github.event.inputs.busytexreleasetag }}/busytex.wasm
wget https://github.com/busytex/busytex/releases/download/${{ github.event.inputs.busytexreleasetag }}/busytex.js
cd ../../
mkdir -p build-js/
cp ../build-js/BusytexAsync.browser.js build-js/
mkdir -p typescript/test/assets
cp ../typescript/test/assets/* typescript/test/assets/
- uses: actions/upload-pages-artifact@v2
with:
path: $GITHUB_WORKSPACE/pages