Skip to content
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
5 changes: 1 addition & 4 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ on:
- "{package,package-lock,tsconfig}.json"
- "scrapers/overrides.toml.d/override-schema.json"

env:
python-version: 3.8

jobs:
black:
name: Black
Expand All @@ -33,7 +30,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ env.python-version }}
python-version: ${{ vars.PYTHON_VERSION }}
cache: "pip"
- uses: psf/black@24.8.0 # pinned due to python 8 support
pylint:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ on:
- ".prettierignore"
- "scrapers/overrides.toml.d/override-schema.json"

env:
node-version: 20

jobs:
prettier:
name: Prettier
Expand All @@ -32,7 +29,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
node-version: ${{ vars.NODE_VERSION }}
cache: "npm"
- name: Install node dependencies
run: npm ci
Expand All @@ -46,7 +43,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
node-version: ${{ vars.NODE_VERSION }}
cache: "npm"
- name: Install node dependencies
run: npm ci
Expand All @@ -62,7 +59,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
node-version: ${{ vars.NODE_VERSION }}
cache: "npm"
- name: Install node dependencies
run: npm ci
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# 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@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: ${{ vars.NODE_VERSION }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
SUBDIR: "/${{ github.event.repository.name }}/"
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
name: gh-pages-artifact
path: "./build/client"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- deploy

env:
node-version: 20

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +14,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
node-version: ${{ vars.NODE_VERSION }}
cache: "npm"
- name: Install node dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion react-router.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default {
appDirectory: "src",
ssr: false,
// change if deploying to a subdirectory
basename: "/",
basename: process.env.SUBDIR ?? "/",
} satisfies Config;
5 changes: 5 additions & 0 deletions src/routes/build.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { redirect } from "react-router";

export function clientLoader() {
return redirect("/");
}
Loading