From 1e28e827ce4ebb00a7cf4403fa598f0aeba4c963 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 23 Sep 2025 02:35:00 +0100 Subject: [PATCH] GitHub Pages support --- .github/ISSUE_TEMPLATE/deployment.yml | 25 ------------------------- .github/workflows/github-pages.yml | 14 ++++++-------- svelte.config.js | 2 +- 3 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/deployment.yml diff --git a/.github/ISSUE_TEMPLATE/deployment.yml b/.github/ISSUE_TEMPLATE/deployment.yml deleted file mode 100644 index 2f60d63..0000000 --- a/.github/ISSUE_TEMPLATE/deployment.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: 🛠️ Deployment / self-hosting -description: Installation, configuration, upgrades, containers, or Kubernetes. -title: "[deploy] " -labels: ["type:deploy", "scope:self-hosted"] -body: - - type: dropdown - id: method - attributes: - label: Install method - options: [Docker, Source, GitHub Pages, Vercel, Other] - validations: { required: true } - - type: input - id: version - attributes: - label: App image/tag or chart version - - type: textarea - id: env - attributes: - label: Platform details - placeholder: OS/distro, CPU/RAM, storage, container runtime, ingress, proxy. - - type: textarea - id: logs - attributes: - label: Startup/runtime logs - render: shell diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index d7b5832..89066a7 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: 🐙 Deploy to GitHub Pages on: workflow_dispatch: @@ -8,15 +8,10 @@ on: required: false default: '/networking-toolbox' type: string - target_branch: - description: 'Target branch for deployment' - required: false - default: 'gh-pages' - type: string node_version: description: 'Node.js version' required: false - default: '18' + default: '22' type: string deploy_env: description: 'Deployment environment' @@ -43,6 +38,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Configure Pages + uses: actions/configure-pages@v5 + - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -72,4 +70,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/svelte.config.js b/svelte.config.js index ee0d175..5b27e20 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -32,7 +32,7 @@ function getAdapter() { case 'static': return adapterStatic({ strict: false, - fallback: '404.html', + fallback: 'index.html', }); case 'auto': return adapterAuto();