Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Add action to upload to GitHub Page #1

Add action to upload to GitHub Page

Add action to upload to GitHub Page #1

Workflow file for this run

name: Upload to GitHub pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Set up PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.pnpm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: pnpm install
- run: pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./dist