From 430828edcb1494c906c8da0fe757960346cd45f8 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Fri, 16 Jan 2026 13:18:18 +0100 Subject: [PATCH 1/3] chore: add GitHub Actions workflow for deploying to GitHub Pages --- .github/workflows/deploy.yml | 51 ++++++++++++++++++++++++++++++++ vite.config.js => vite.config.ts | 1 + 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/deploy.yml rename vite.config.js => vite.config.ts (78%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..6e84f4df --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,51 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Set up Node + uses: actions/setup-node@v6 + with: + node-version: lts/* + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + # Upload dist folder + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/vite.config.js b/vite.config.ts similarity index 78% rename from vite.config.js rename to vite.config.ts index cb0483c3..2e102351 100644 --- a/vite.config.js +++ b/vite.config.ts @@ -1,5 +1,6 @@ export default { root: './src', + base: '/Fantasy-Map-Generator/', build: { outDir: '../dist', assetsDir: './', From 79d4a09e00139671a6b2fd8ba6ab1d4834bfb078 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Fri, 16 Jan 2026 13:20:10 +0100 Subject: [PATCH 2/3] fix: update branch name in GitHub Actions workflow from 'main' to 'master' --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6e84f4df..55bc8109 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,7 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: - branches: ['main'] + branches: ['master'] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 9bf5c8fddd3c141831867abe3ca11200fce076f3 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 18 Jan 2026 16:27:02 +0100 Subject: [PATCH 3/3] chore: update package.json to specify Node.js engine version and remove unused launch.json --- .vscode/launch.json | 11 ----------- package.json | 3 +++ public/versioning.js | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 6afdcc7d..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": "0.1.0", - "configurations": [ - { - "name": "Debug", - "type": "chrome", - "request": "launch", - "file": "${workspaceFolder}/index.html" - } - ] -} \ No newline at end of file diff --git a/package.json b/package.json index d118880b..1e222bb5 100644 --- a/package.json +++ b/package.json @@ -20,5 +20,8 @@ }, "devDependencies": { "vite": "^7.3.1" + }, + "engines": { + "node": ">=24.0.0" } } diff --git a/public/versioning.js b/public/versioning.js index 1c4d005e..6b1f88fd 100644 --- a/public/versioning.js +++ b/public/versioning.js @@ -13,7 +13,7 @@ * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.109.5"; +const VERSION = "1.110.0"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); {