Skip to content

add new albums

add new albums #75

name: Deploy NextJS to GitHub Pages
on:
push:
branches:
- main
# Allows running manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Next.js build cache
uses: actions/cache@v4
with:
path: .next/cache
key: ${{ runner.os }}-nextjs-cache-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nextjs-cache-
- name: Cache Next.js Exported Images
uses: actions/cache@v4
with:
path: |
public/optimized-images
public/images
key: ${{ runner.os }}-nextjs-exported-images
restore-keys: |
${{ runner.os }}-nextjs-exported-images
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
version: 10.15
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: out
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4