Skip to content

GitHub Pages

GitHub Pages #2

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
fetch-depth: 0
- name: Build Soluna (WASM)
uses: ./.github/actions/soluna
id: build
with:
soluna_path: "."
- name: Install web build tools
run: |
sudo apt-get update
sudo apt-get install -y lua5.4 zip
- name: Prepare web assets
run: |
lua5.4 script/build_web.lua \
--soluna . \
--site web \
--wasm "${{ steps.build.outputs.SOLUNA_WASM_PATH }}" \
--js "${{ steps.build.outputs.SOLUNA_JS_PATH }}"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.119.0"
- name: Build
run: hugo --source web --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/public