Files
afilmory/.github/workflows/build.yml
Innei 9e0f21591a chore: update configuration files and README for storage integration
- Replaced the repository configuration in `builder.config.example.json` with S3 storage settings, including bucket and endpoint details.
- Removed the social and feed sections from `config.example.json` to simplify the configuration structure.
- Updated the README to reflect changes in the author section and added optional comments for clarity.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-28 19:05:40 +08:00

43 lines
1.3 KiB
YAML

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v4
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- run: echo '{"version":"v2","data":[]}' > apps/web/src/data/photos-manifest.json
- run: cd apps/web && pnpm vite build