fix: prod should now run #9
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: 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 |