Skip to content

Commit 18897ad

Browse files
rm client and add workflow
1 parent 17bb495 commit 18897ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+82
-6180
lines changed

.github/workflows/pages.yml

-36
This file was deleted.

.github/workflows/publish.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# File: .github/workflows/publish.yml
2+
name: publish-to-github-pages
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next-app
8+
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout 🛎️
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
28+
uses: ./.github/workflows/setup-node
29+
30+
- name: Setup Pages ⚙️
31+
uses: actions/configure-pages@v4
32+
with:
33+
static_site_generator: next
34+
35+
- name: Build with Next.js 🏗️
36+
run: npx next build
37+
38+
- name: Upload artifact 📡
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: ./game/out
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
runs-on: ubuntu-latest
49+
needs: build
50+
51+
steps:
52+
- name: Publish to GitHub Pages 🚀
53+
id: deployment
54+
uses: actions/deploy-pages@v4
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: setup-node
2+
description: "Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup Node.js ⚙️
7+
uses: actions/setup-node@v4
8+
with:
9+
node-version: 20
10+
11+
- name: Cache dependencies ⚡
12+
id: cache_dependencies
13+
uses: actions/cache@v3
14+
with:
15+
path: game/node_modules
16+
key: node-modules-${{ hashFiles('game/package-lock.json') }}
17+
18+
- name: Install dependencies 🔧
19+
shell: bash
20+
if: steps.cache_dependencies.outputs.cache-hit != 'true'
21+
run: cd game && npm i

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/*.sqlite
22
**/*.env
33
node_modules/
4+
*.wasm

client/.gitignore

-4
This file was deleted.

client/README.md

-40
This file was deleted.

client/assets/1.png

-206 KB
Binary file not shown.

client/assets/2.png

-86.4 KB
Binary file not shown.

client/assets/3.png

-75.4 KB
Binary file not shown.

client/assets/Hyperspace.otf

-21.4 KB
Binary file not shown.

client/assets/explode1.wav

-85.9 KB
Binary file not shown.

client/assets/explode2.wav

-84.7 KB
Binary file not shown.

client/assets/explode3.wav

-84.8 KB
Binary file not shown.

client/assets/fire.wav

-24.2 KB
Binary file not shown.

client/assets/getpowerup.wav

-41.1 KB
Binary file not shown.

client/assets/life.wav

-117 KB
Binary file not shown.

client/assets/lsaucer.wav

-15.1 KB
Binary file not shown.

client/assets/powerup.wav

-185 KB
Binary file not shown.

client/assets/sfire.wav

-26.5 KB
Binary file not shown.

client/assets/ssaucer.wav

-10.5 KB
Binary file not shown.

client/assets/thrust.wav

-7.99 KB
Binary file not shown.

client/assets/thumphi.wav

-10.4 KB
Binary file not shown.

client/assets/thumplo.wav

-8.8 KB
Binary file not shown.

client/comets.d.ts

-28
This file was deleted.

client/game/achievement.ts

-49
This file was deleted.

0 commit comments

Comments
 (0)