Skip to content

Set action branch to main. #1

Set action branch to main.

Set action branch to main. #1

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
permissions:
pages: write
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x", "20.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
- name: Deploy to https://${{ github.actor }}.github.io/${{ github.event.repository.name }}/
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist