Skip to content

fix 月音瑚奈; add photos #26

fix 月音瑚奈; add photos

fix 月音瑚奈; add photos #26

Workflow file for this run

name: Build and Deploy
on:
push:
branches: ['main']
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Checkout gh page
uses: actions/checkout@v2
with:
repository: nulla2011/nulla2011.github.io
path: ghPage
token: ${{ secrets.PAT }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build 🔧
run: |
pnpm run build:github
- name: Overwrite sysx
run: |
rm -rf ghPage/sysx/**
cp -r dist/* ghPage/sysx/
- name: Commit changes
run: |
cd ghPage
git add --a
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update sysx"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
repository: nulla2011/nulla2011.github.io
directory: ghPage
github_token: ${{ secrets.PAT }}