Skip to content

another tip

another tip #186

name: Build & Deploy
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.15.0']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install packages
run: npm ci
- name: Run npm build
run: npm run build-ghpages
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_site
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}