Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and enhance stats tracking for various game features #112

Merged
merged 14 commits into from
Feb 6, 2025
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
39 changes: 38 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
paths: ["src/**", ".github/workflows/website.yml"]

env:
NODE_VERSION: "22"
CONTAINER_REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

Expand Down Expand Up @@ -82,3 +81,41 @@ jobs:

- name: Svelte Build
run: pnpm run build

package:
name: Package into Container
if: |
(github.ref == 'refs/heads/prod' || github.ref == 'refs/heads/dev')
&& github.repository_owner == 'SkyCryptWebsite'
&& github.event_name != 'pull_request'
needs: [conflicts, analyze, formatting-checks, build]
runs-on: ubuntu-latest

permissions:
packages: write
contents: read

steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Registry login
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and Push
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"@eslint/compat": "^1.2.6",
"@eslint/js": "^9.19.0",
"@sveltejs/adapter-node": "^5.2.12",
"@sveltejs/kit": "^2.16.1",
"@sveltejs/kit": "^2.17.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/vite": "^4.0.3",
"@tailwindcss/vite": "^4.0.4",
"@types/eslint": "^9.6.1",
"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.15",
"@types/micromatch": "^4.0.9",
"@types/mongo-sanitize": "^1.0.3",
"@types/node": "^22.13.0",
"@types/node": "^22.13.1",
"@types/relaxed-json": "^1.0.4",
"@types/upng-js": "^2.1.5",
"bits-ui": "^0.22.0",
Expand All @@ -55,7 +55,7 @@
"simple-git": "^3.27.0",
"skinview3d": "^3.1.0",
"skyhelper-networth": "^1.27.1",
"svelte": "5.19.6",
"svelte": "5.19.8",
"svelte-check": "^4.1.4",
"svelte-dnd-action": "^0.9.57",
"svelte-interactions": "^0.2.0",
Expand All @@ -66,14 +66,14 @@
"svelte-tiny-virtual-list": "^2.1.2",
"sveltekit-superforms": "^2.23.1",
"tailwind-merge": "^3.0.1",
"tailwindcss": "^4.0.3",
"tailwindcss": "^4.0.4",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"typescript-eslint": "^8.22.0",
"typescript-eslint": "^8.23.0",
"upng-js": "^2.1.0",
"util": "^0.12.5",
"vaul-svelte": "1.0.0-next.3",
"vite": "^6.0.11",
"vite": "^6.1.0",
"zod": "^3.24.1"
},
"dependencies": {
Expand Down
Loading
Loading