pages-landing-page/.github/workflows/build.yaml
Renovate Bot dc0d1b2950
All checks were successful
Build & Deploy / build (pull_request) Successful in 31s
Build & Deploy / build (push) Successful in 33s
chore(deps): update peaceiris/actions-gh-pages action to v4
2024-04-08 16:01:01 +00: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@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true
publish_branch: pages