Skip to content

Commit 2a7b976

Browse files
author
Top-5
committed
Add GitHub Pages deployment setup and auto-move to foundation feature
1 parent 0a4a825 commit 2a7b976

File tree

18 files changed

+5694
-185
lines changed

18 files changed

+5694
-185
lines changed

.github/workflows/deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
cache: 'npm'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: ./dist
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

dist/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Public Assets
2+
3+
Place your playing card assets in this directory:
4+
5+
## `deck.png` - Card Spritesheet
6+
**Expected format:**
7+
- 4 rows (suits: Clubs, Hearts, Spades, Diamonds)
8+
- 13 columns (ranks: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K)
9+
10+
The spritesheet loader will automatically extract individual card images from this file.
11+
12+
## `back.jpg` - Card Back Image
13+
A single image showing the back design of the playing cards. This will be scaled to match the card dimensions and used for all face-down cards.

dist/assets/index-CRwiy2AR.js

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-Dnr-KOkw.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/back.jpg

259 KB
Loading

dist/deck.png

1.43 MB
Loading

dist/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Klondike Solitaire</title>
7+
<script type="module" crossorigin src="/klondike/assets/index-CRwiy2AR.js"></script>
8+
<link rel="stylesheet" crossorigin href="/klondike/assets/index-Dnr-KOkw.css">
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)