Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
837 changes: 0 additions & 837 deletions .github/assets/index.html

This file was deleted.

32 changes: 18 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,41 @@ on:

jobs:
build:
name: Build Runtime
name: Build Website
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Build Soluna
uses: ./soluna/.github/actions/soluna
id: build
with:
soluna_path: "./soluna"
- name: Prepare Game Content
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Build Website
shell: bash
working-directory: website
env:
SITE_BASE: /deepfuture/
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 }}
run: |
mkdir build
cp "${{ steps.build.outputs.SOLUNA_WASM_PATH }}" ./build/
cp "${{ steps.build.outputs.SOLUNA_JS_PATH }}" ./build/
zip -r ./build/main.zip asset core gameplay localization service visual main.game main.lua
cp .github/assets/index.html ./build/
cp .github/assets/*.ttf ./build/
cp .github/assets/coi-serviceworker.min.js ./build/
corepack enable
pnpm install --no-frozen-lockfile
pnpm run build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: build/
path: website/dist/
deploy:
name: Deploy to GitHub Pages
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master'
Expand All @@ -55,5 +61,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4


3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
soluna/
.DS_Store
website/node_modules/
website/dist/
website/public/runtime
2 changes: 1 addition & 1 deletion soluna
Submodule soluna updated 110 files
15 changes: 15 additions & 0 deletions website/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{
typescript: true,
stylistic: {
semi: false,
},
},
{
rules: {
'style/semi': ['error', 'never'],
},
},
)
14 changes: 14 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Deep Future</title>
<script src="/coi-serviceworker.min.js"></script>
<script defer src="https://stateflare.yuchanns.xyz/track.js"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
25 changes: 25 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "deepfuture-website",
"type": "module",
"private": true,
"packageManager": "pnpm@10.33.0",
"scripts": {
"build": "pnpm run prepare:runtime && vite build",
"build:pages": "SITE_BASE=/deepfuture/ pnpm run build",
"dev": "pnpm run prepare:runtime && vite",
"format": "eslint . --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare:runtime": "node scripts/prepare-runtime.mjs",
"preview": "vite preview"
},
"dependencies": {
"fflate": "^0.8.2"
},
"devDependencies": {
"@antfu/eslint-config": "^7.7.3",
"eslint": "^10.1.0",
"typescript": "^6.0.2",
"vite": "^8.0.3"
}
}
Loading