pages-landing-page/.github/workflows/build.yaml
Sam Therapy 399c593df4
All checks were successful
Build & Deploy / build (push) Successful in 31s
Lint
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-04-03 17:16:49 +02:00

34 lines
761 B
YAML

name: Build & Deploy
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
- name: Install dependencies
run: pnpm install
- name: Vite
run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true
publish_branch: pages