- Move 'ref' and 'fetch-depth' parameters from setup-node to checkout action - These parameters belong to actions/checkout, not actions/setup-node - Resolves "Unexpected input(s)" warnings in workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
694 B
YAML
36 lines
694 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- react-migration
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 23
|
|
- run: |
|
|
npm install
|
|
|
|
- name: Build
|
|
env:
|
|
TZ: "Asia/Tokyo"
|
|
run: |
|
|
npm run build
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./dist
|
|
user_name: 'ai[bot]'
|
|
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
|