Skip to content

Commit

Permalink
chore: fix preview deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Dec 15, 2024
1 parent 9438ecc commit c75b2f9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy Preview

on:
push:
branches:
- main

permissions: {}

jobs:
deploy-docs:
permissions:
contents: write # to write to gh-pages branch (peaceiris/actions-gh-pages)

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install packages
run: pnpm install --frozen-lockfile --prefer-offline

- name: Build
run: pnpm run build

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.18.1

0 comments on commit c75b2f9

Please sign in to comment.