|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | build: |
14 | | - name: Build Runtime |
| 14 | + name: Build Website |
15 | 15 | if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' |
16 | 16 | runs-on: ubuntu-latest |
17 | 17 | strategy: |
18 | 18 | fail-fast: false |
19 | 19 | steps: |
20 | | - - uses: actions/checkout@v5 |
| 20 | + - uses: actions/checkout@v6 |
21 | 21 | with: |
22 | 22 | submodules: recursive |
23 | 23 | - name: Build Soluna |
24 | 24 | uses: ./soluna/.github/actions/soluna |
25 | 25 | id: build |
26 | 26 | with: |
27 | 27 | soluna_path: "./soluna" |
28 | | - - name: Prepare Game Content |
| 28 | + - name: Setup Node |
| 29 | + uses: actions/setup-node@v6 |
| 30 | + with: |
| 31 | + node-version: 24 |
| 32 | + - name: Build Website |
29 | 33 | shell: bash |
| 34 | + working-directory: website |
| 35 | + env: |
| 36 | + SITE_BASE: /deepfuture/ |
| 37 | + SOLUNA_JS_PATH: ${{ steps.build.outputs.SOLUNA_JS_PATH }} |
| 38 | + SOLUNA_WASM_PATH: ${{ steps.build.outputs.SOLUNA_WASM_PATH }} |
| 39 | + SOLUNA_WASM_MAP_PATH: ${{ steps.build.outputs.SOLUNA_WASM_MAP_PATH }} |
30 | 40 | run: | |
31 | | - mkdir build |
32 | | - cp "${{ steps.build.outputs.SOLUNA_WASM_PATH }}" ./build/ |
33 | | - cp "${{ steps.build.outputs.SOLUNA_JS_PATH }}" ./build/ |
34 | | - zip -r ./build/main.zip asset core gameplay localization service visual main.game main.lua |
35 | | - cp .github/assets/index.html ./build/ |
36 | | - cp .github/assets/*.ttf ./build/ |
37 | | - cp .github/assets/coi-serviceworker.min.js ./build/ |
| 41 | + corepack enable |
| 42 | + pnpm install --no-frozen-lockfile |
| 43 | + pnpm run build |
38 | 44 | - name: Upload static files as artifact |
39 | 45 | id: deployment |
40 | | - uses: actions/upload-pages-artifact@v3 |
| 46 | + uses: actions/upload-pages-artifact@v4 |
41 | 47 | with: |
42 | | - path: build/ |
| 48 | + path: website/dist/ |
43 | 49 | deploy: |
44 | 50 | name: Deploy to GitHub Pages |
45 | 51 | if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' |
|
55 | 61 | - name: Deploy to GitHub Pages |
56 | 62 | id: deployment |
57 | 63 | uses: actions/deploy-pages@v4 |
58 | | - |
59 | | - |
|
0 commit comments