-
Notifications
You must be signed in to change notification settings - Fork 24
77 lines (71 loc) · 1.94 KB
/
Copy pathpages.yml
File metadata and controls
77 lines (71 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: GitHub Pages
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
inputs:
debug:
description: 'Whether to build in debug mode'
required: false
default: 'false'
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
jobs:
build:
name: Build Web Site
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
fetch-depth: 0
- name: Build Soluna
uses: ./.github/actions/soluna
id: build
with:
soluna_path: "."
debug: ${{ github.event.inputs.debug || 'false' }}
- name: Build Sample
uses: ./.github/actions/sample
id: sample
with:
soluna_path: "."
- name: Build Astro
uses: withastro/action@v6
env:
SITE_BASE: /soluna/
SOLUNA_JS_PATH: ${{ steps.build.outputs.SOLUNA_JS_PATH }}
SOLUNA_WASM_PATH: ${{ steps.build.outputs.SOLUNA_WASM_PATH }}
SOLUNA_WASM_MAP_PATH: ${{ steps.build.outputs.SOLUNA_WASM_MAP_PATH }}
SAMPLE_WASM_PATH: ${{ steps.sample.outputs.SAMPLE_WASM_PATH }}
with:
path: website
node-version: 24
package-manager: pnpm@10.28.2
build-cmd: pnpm run build
out-dir: dist
deploy:
name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor != 'nektos/act'
needs: [build]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5