This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
Do 2de5c41d8dc722273bdf975656a897cc65049825 typesafely #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |