Compare commits

...

6 commits

Author SHA1 Message Date
aa8c9ce317
Merge branch 'actions'
All checks were successful
/ build (push) Successful in 49s
2025-02-19 20:20:44 -05:00
8d180285a9
Change Bash directive style
All checks were successful
/ build (push) Successful in 50s
/ build (pull_request) Successful in 41s
Oops, it wasn't that it wasn't finding the file, it was that the first line failed.
2025-02-19 18:43:25 -05:00
66756b0605
Rename render.bash to use .sh extension
Some checks failed
/ build (push) Failing after 36s
Using .bash appears to have broken the call from Yarn in the CI?
2025-02-19 18:39:23 -05:00
6ae65fdb45
Make action install dependencies before trying to build
Some checks failed
/ build (push) Failing after 37s
2025-02-19 18:29:33 -05:00
63423f2110
Make render script use Bash best practices 2025-02-19 18:28:57 -05:00
e5f2925307
First draft of build action
Some checks failed
/ build (push) Failing after 1m56s
2025-02-19 18:02:33 -05:00
3 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,13 @@
on: [push, pull_request]
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build

View file

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "./render.sh", "build": "./render.bash",
"build:targets": "yarn build:client && yarn build:server", "build:targets": "yarn build:client && yarn build:server",
"build:client": "tsc -b && vite build --outDir dist/client", "build:client": "tsc -b && vite build --outDir dist/client",
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx", "build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",

View file

@ -1,8 +1,15 @@
#!/bin/sh #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
yarn "build:targets" yarn "build:targets"
PROD='dist/prod' PROD='dist/prod'
rm -r "$PROD" if [[ -d "$PROD" ]]; then
rm -r "$PROD"
fi
mkdir -p "$PROD" mkdir -p "$PROD"
echo 'Rendering webpage...' echo 'Rendering webpage...'