Skip to content
Merged
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
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build build-backend build-estimator build-dbt
.PHONY: build build-backend build-estimator build-dbt deploy-frontend

build: build-backend build-estimator build-dbt

Expand All @@ -10,3 +10,13 @@ build-estimator:

build-dbt:
docker build -t atcoder-problems-2025-dbt:latest ./dbt

FRONTEND_DIR := atcoder-problems-frontend
S3_BUCKET ?= kenkoooo.com

# Build the frontend locally and sync the artifacts to S3.
# Note: --delete is intentionally NOT used because the destination bucket also
# hosts backend-generated data (e.g. resources/) that is not part of the build.
deploy-frontend:
cd $(FRONTEND_DIR) && pnpm install --frozen-lockfile && pnpm run build
aws s3 sync $(FRONTEND_DIR)/build/ s3://$(S3_BUCKET)/
Loading