@@ -24,59 +24,44 @@ jobs:
2424 runs-on : ubuntu-latest
2525 concurrency :
2626 group : ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
27+ permissions :
28+ contents : read
29+ pages : write
30+ id-token : write
2731 steps :
28- - uses : actions/checkout@v5
32+ - uses : actions/checkout@v6
2933 with :
3034 submodules : recursive
3135 fetch-depth : 0
3236 ref : ${{ github.event.workflow_run.head_sha || github.sha }}
3337
34- - name : Build Soluna (WASM)
38+ - name : Build Soluna
3539 uses : ./.github/actions/soluna
3640 id : build
3741 with :
3842 soluna_path : " ."
3943 debug : ${{ github.event.inputs.debug }}
4044
41- - name : Build WASM side module (sample)
45+ - name : Build Sample
4246 uses : ./.github/actions/sample
4347 id : sample
4448 with :
4549 soluna_path : " ."
4650
47- - name : Install web build tools
48- run : |
49- sudo apt-get update
50- sudo apt-get install -y lua5.4 zip
51-
52- - name : Prepare web assets
53- run : |
54- lua5.4 script/build_web.lua \
55- --soluna . \
56- --site web \
57- --wasm "${{ steps.build.outputs.SOLUNA_WASM_PATH }}" \
58- --js "${{ steps.build.outputs.SOLUNA_JS_PATH }}"
59- if [ -f "${{ steps.build.outputs.SOLUNA_WASM_MAP_PATH }}" ]; then
60- cp "${{ steps.build.outputs.SOLUNA_WASM_MAP_PATH }}" web/static/runtime/soluna.wasm.map
61- fi
62-
63- - name : Copy WASM side module into runtime
64- run : |
65- cp "${{ steps.sample.outputs.SAMPLE_WASM_PATH }}" web/static/runtime/sample.wasm
66-
67- - name : Setup Hugo
68- uses : peaceiris/actions-hugo@v3
69- with :
70- hugo-version : " 0.154.5"
71-
72- - name : Build
73- run : hugo --source web --minify
74-
75- - name : Upload static files as artifact
76- id : deployment
77- uses : actions/upload-pages-artifact@v3
51+ - name : Build Astro
52+ uses : withastro/action@v6
53+ env :
54+ SITE_BASE : /soluna/
55+ SOLUNA_JS_PATH : ${{ steps.build.outputs.SOLUNA_JS_PATH }}
56+ SOLUNA_WASM_PATH : ${{ steps.build.outputs.SOLUNA_WASM_PATH }}
57+ SOLUNA_WASM_MAP_PATH : ${{ steps.build.outputs.SOLUNA_WASM_MAP_PATH }}
58+ SAMPLE_WASM_PATH : ${{ steps.sample.outputs.SAMPLE_WASM_PATH }}
7859 with :
79- path : web/public
60+ path : website
61+ node-version : 24
62+ package-manager : pnpm@10.28.2
63+ build-cmd : pnpm run build
64+ out-dir : dist
8065
8166 deploy :
8267 name : Deploy to GitHub Pages
0 commit comments